import { type Note } from "@/types.ts"; export function NoteItem( { id, createdAt, content, userId, userDisplayName, userUsername }: Note, ) { return (
Note {id} {" created by "} {!userId ? "Anonymous" : {userDisplayName || userUsername}} {` at ${createdAt.toLocaleString()}`}
{content}
); }