import { ImagePreview, LinkPreview, MentionNote, NoteActions, NoteSkeleton, VideoPreview, } from '@shared/notes'; import { User } from '@shared/user'; import { useEvent } from '@utils/hooks/useEvent'; export function SubNote({ id }: { id: string }) { const { status, data } = useEvent(id); if (status === 'loading') { return (
); } if (status === 'error') { return (

Failed to fetch

); } return ( <>
{data.content.parsed}
{data.content.images.length > 0 && ( )} {data.content.videos.length > 0 && ( )} {data.content.links.length > 0 && } {data.content.notes.length > 0 && data.content.notes.map((note: string) => ( ))}
); }