// react import React, { useState } from "react"; // icons import { ChevronDown, PlayIcon } from "lucide-react"; // hooks import useEstimateOption from "hooks/use-estimate-option"; // components import { WebViewModal } from "./web-view-modal"; type Props = { value: any; onChange: (value: any) => void; disabled?: boolean; }; export const EstimateSelect: React.FC = (props) => { const { value, onChange, disabled = false } = props; const [isOpen, setIsOpen] = useState(false); const { estimatePoints } = useEstimateOption(); return ( <> { setIsOpen(false); }} > { setIsOpen(false); if (disabled) return; onChange(null); }, icon: , }, ...estimatePoints?.map((point) => ({ label: point.value, value: point.key, checked: point.key === value, icon: , onClick: () => { setIsOpen(false); if (disabled) return; onChange(point.key); }, })), ]} /> ); };