import type { ExternalContent } from "@/types/trill"; import Card from "./Card"; interface JSONProps { content: ExternalContent[]; } function JSONContent({ content }: JSONProps) { return ( <> {content.map((c, i) => { if (!JSON.parse(c.json.content)) return

Error

; else return (

External content from "{c.json.origin}", use UFA to display.

); })} ); } export default JSONContent; export function YoutubeSnippet({ href, id }: { href: string; id: string }) { const thumbnail = `https://i.ytimg.com/vi/${id}/hqdefault.jpg`; // todo styiling return ( ); }