import React from "react"; // hooks import useEstimateOption from "hooks/use-estimate-option"; // ui import { CustomSelect } from "@plane/ui"; // icons import { Triangle } from "lucide-react"; type Props = { value: number | null; onChange: (val: number | null) => void; disabled?: boolean; }; export const SidebarEstimateSelect: React.FC = ({ value, onChange, disabled = false }) => { const { estimatePoints } = useEstimateOption(); const currentEstimate = estimatePoints?.find((e) => e.key === value)?.value; return ( {currentEstimate ? ( <> {currentEstimate} ) : ( "No Estimate" )} } onChange={onChange} disabled={disabled} > <> None {estimatePoints && estimatePoints.map((point) => ( <> {point.value} ))} ); };