import { Check, ClipboardCopy, Download } from "lucide-react"; import { useCallback, useState } from "react"; import { Dialog, DialogHeader } from "./ui/dialog.js"; import { Input } from "./ui/input.js"; interface ExportMethodDialogProps { open: boolean; onDownload: (includeHistory: boolean, filename: string) => void; onCopyToClipboard: (includeHistory: boolean) => void; onClose: () => void; } export function ExportMethodDialog({ open, onDownload, onCopyToClipboard, onClose, }: Readonly) { const [includeHistory, setIncludeHistory] = useState(false); const [filename, setFilename] = useState(""); const [copied, setCopied] = useState(false); const handleClose = useCallback(() => { setIncludeHistory(false); setFilename(""); setCopied(false); onClose(); }, [onClose]); return (
setFilename(e.target.value)} placeholder="Filename (optional)" />
); }