import { useEvent } from "@lume/ark"; import { cn } from "@lume/utils"; import { Note } from "."; export function NoteChild({ eventId, isRoot, }: { eventId: string; isRoot?: boolean; }) { const { isLoading, isError, data } = useEvent(eventId); if (isLoading) { return
Loading...
; } if (isError || !data) { return
Error
; } return (
); }