import { useState } from "react"; import { Button } from "@/components/ui/button"; import { Textarea } from "@/components/ui/textarea"; import { StickyNote, X } from "lucide-react"; import { cn } from "@/lib/utils"; interface TextAnnotationProps { onAdd: (text: string) => void; } const TextAnnotation = ({ onAdd }: TextAnnotationProps) => { const [isOpen, setIsOpen] = useState(false); const [text, setText] = useState(""); const handleAdd = () => { if (text.trim()) { onAdd(text.trim()); setText(""); setIsOpen(false); } }; return (
{isOpen && (
Nouvelle note