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

Failed to fetch event: {id}

); } return ( <>
); }