import { Check, ClipboardCopy, Download, X } from "lucide-react"; import { useCallback, useState } from "react"; import { Button } from "./ui/button.js"; import { Dialog } 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 (

Export Encounter

setFilename(e.target.value)} placeholder="Filename (optional)" />
); }