"use client"; import { FileText, Braces, Globe, FileDown, AlignLeft } from "lucide-react"; import { cn } from "@/lib/utils"; import type { ExportFormat } from "@/lib/types"; interface FormatOption { value: ExportFormat; label: string; description: string; icon: React.ReactNode; } const FORMATS: FormatOption[] = [ { value: "markdown", label: "Markdown", description: "Clean .md with code blocks and metadata", icon: , }, { value: "json", label: "JSON", description: "Full conversation data with tool use", icon: , }, { value: "html", label: "HTML", description: "Self-contained file with embedded styles", icon: , }, { value: "pdf", label: "PDF", description: "Print-to-PDF via browser dialog", icon: , }, { value: "plaintext", label: "Plain Text", description: "Stripped of all formatting", icon: , }, ]; interface FormatSelectorProps { value: ExportFormat; onChange: (format: ExportFormat) => void; } export function FormatSelector({ value, onChange }: FormatSelectorProps) { return (
{FORMATS.map((fmt) => ( ))}
); }