import { Kind1 } from "@shared/notes/contents/kind1"; import { Kind1063 } from "@shared/notes/contents/kind1063"; import { NoteMetadata } from "@shared/notes/metadata"; import { NoteSkeleton } from "@shared/notes/skeleton"; import { User } from "@shared/user"; import { useEvent } from "@utils/hooks/useEvent"; export function NoteParent({ id }: { id: string }) { const { status, data } = useEvent(id); return (
{status === "loading" ? ( ) : status === "success" ? ( <>
{data.kind === 1 && } {data.kind === 1063 && } {data.kind !== 1 && data.kind !== 1063 && (
Kind: {data.kind}

Lume isn't fully support this kind in newsfeed

{data.content || data.toString()}

)}
) : (

Failed to fetch event

)}
); }