import { RiFileList2Line, RiPencilLine } from "@remixicon/react"; import type { Note } from "@/components/anotacoes/types"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { buildNoteDisplayTitle, formatNoteCreatedAt, getNoteTasksSummary, } from "@/lib/notes/formatters"; type NoteListItemProps = { note: Note; onOpenEdit: (note: Note) => void; onOpenDetails: (note: Note) => void; }; export function NoteListItem({ note, onOpenEdit, onOpenDetails, }: NoteListItemProps) { const displayTitle = buildNoteDisplayTitle(note.title); const createdAtLabel = formatNoteCreatedAt(note.createdAt); return (
{displayTitle}
{createdAtLabel}
) : null}