import { useState } from "react"; import { Dialog, DialogClose, DialogContent, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, } from "../ui/dialog"; import { Label } from "../ui/label"; import { RadioGroup, RadioGroupItem } from "../ui/radio-group"; import { Button } from "../ui/button"; const EXPORT_OPTIONS = [ "1", "4", "8", "12", "24", "custom", "timeline", ] as const; type ExportOption = (typeof EXPORT_OPTIONS)[number]; export default function ExportDialog() { const [selectedOption, setSelectedOption] = useState("1"); return (
Export setSelectedOption(value as ExportOption)} > {EXPORT_OPTIONS.map((opt) => { return (
); })}
Cancel
); }