diff options
author | polwex <polwex@sortug.com> | 2025-09-17 15:56:00 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2025-09-17 15:56:00 +0700 |
commit | f0df4c7297a05bd592d8717b8997284c80fd0500 (patch) | |
tree | 2d38e079e971a2e98e78a0f7a3104f2bd3c5daeb /front/src/components/feed/External.tsx | |
parent | 387af8fc1603805b02ce03f8adba4fa73a954f7c (diff) |
argh
Diffstat (limited to 'front/src/components/feed/External.tsx')
-rw-r--r-- | front/src/components/feed/External.tsx | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/front/src/components/feed/External.tsx b/front/src/components/feed/External.tsx deleted file mode 100644 index 0ea1500..0000000 --- a/front/src/components/feed/External.tsx +++ /dev/null @@ -1,41 +0,0 @@ -import type { ExternalContent } from "@/types/trill"; -import youtube from "@/assets/icons/youtube.svg"; -import Card from "./Card"; - -interface JSONProps { - content: ExternalContent[]; -} - -function JSONContent({ content }: JSONProps) { - return ( - <> - {content.map((c, i) => { - if (!JSON.parse(c.json.content)) return <p key={i}>Error</p>; - else - return ( - <p - key={JSON.stringify(c.json)} - className="external-content-warning" - > - External content from "{c.json.origin}", use - <a href="https://urbit.org/applications/~sortug/ufa">UFA</a> - to display. - </p> - ); - })} - </> - ); -} -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 ( - <Card logo={youtube} cn="youtube-thumbnail"> - <a href={href}> - <img src={thumbnail} alt="" /> - </a> - </Card> - ); -} |