"use client"; import * as Switch from "@radix-ui/react-switch"; import type { ExportOptions, ExportFormat } from "@/lib/types"; import { cn } from "@/lib/utils"; interface OptionRowProps { id: string; label: string; description?: string; checked: boolean; onCheckedChange: (v: boolean) => void; disabled?: boolean; } function OptionRow({ id, label, description, checked, onCheckedChange, disabled }: OptionRowProps) { return (
); } interface ExportOptionsProps { options: ExportOptions; onChange: (opts: Partial) => void; } export function ExportOptionsPanel({ options, onChange }: ExportOptionsProps) { const isJson = options.format === "json"; return (
onChange({ includeToolUse: v })} /> onChange({ includeThinking: v })} disabled={isJson} /> onChange({ includeTimestamps: v })} /> onChange({ includeFileContents: v })} />
); }