import type { AllowedMediaReferences } from "../renderer.js"; import { CommentMediaImage } from "./CommentMediaImage.js"; import { CommentMediaVideo } from "./CommentMediaVideo.js"; import { CommentMediaFile } from "./CommentMediaFile.js"; export function CommentMediaReference({ reference, }: { reference: AllowedMediaReferences; }) { switch (reference.type) { case "video": return ( ); case "image": return ( ); case "file": return ( ); default: return null; } } function CommentMediaReferenceWrapper({ children, }: { children: React.ReactNode; }) { return (
{children}
); }