NoteItem

fun NoteItem(note: Note, onDelete: () -> Unit, onRestore: () -> Unit? = null)

Composable function to display a single note item in a Card.

Parameters

note

The Note object to display.

onDelete

Lambda function to be called when the delete action is triggered for this note.

onRestore

Optional lambda function to be called when the restore action is triggered (used for deleted notes).