import { NoteSkeleton } from '@shared/notes'; import { User } from '@shared/user'; import { useEvent } from '@utils/hooks/useEvent'; export function ChildNote({ id, isRoot }: { id: string; isRoot?: boolean }) { const { isFetching, isError, data } = useEvent(id); if (isFetching) { return ; } if (isError) { return (
Failed to fetch event
); } return (
{data.content}
); }