import { CheckItem } from "@/lib/types" import { Checkbox } from "@/components/ui/checkbox" import { cn } from "@/lib/utils" interface NoteChecklistProps { items: CheckItem[] onToggleItem: (itemId: string) => void } export function NoteChecklist({ items, onToggleItem }: NoteChecklistProps) { if (!items || items.length === 0) return null return (
{items.map((item) => (
{ e.stopPropagation() onToggleItem(item.id) }} > {item.text}
))}
) }