import { ReactNode } from 'react'; import { MentionNote } from '@shared/notes/mentions/note'; import { ImagePreview } from '@shared/notes/preview/image'; import { LinkPreview } from '@shared/notes/preview/link'; import { VideoPreview } from '@shared/notes/preview/video'; export function Kind1({ content, truncate = false, }: { content: { original: string; parsed: ReactNode[]; notes: string[]; images: string[]; videos: string[]; links: string[]; }; truncate?: boolean; }) { return ( <>
{content.parsed}
{content.images.length > 0 && ( )} {content.videos.length > 0 && } {content.links.length > 0 && } {content.notes.length > 0 && content.notes.map((note: string) => )} ); }