import React from "react"; import { observer } from "mobx-react-lite"; import { Triangle } from "lucide-react"; // store hooks import { useEstimate } from "hooks/store"; // ui import { CustomSelect } from "@plane/ui"; type Props = { value: number | null; onChange: (val: number | null) => void; disabled?: boolean; }; export const SidebarEstimateSelect: React.FC = observer((props) => { const { value, onChange, disabled = false } = props; const { activeEstimateDetails, getEstimatePointValue } = useEstimate(); const currentEstimate = getEstimatePointValue(value); return ( {currentEstimate ? ( <> {currentEstimate} ) : ( "No Estimate" )} } onChange={onChange} disabled={disabled} > <> None {activeEstimateDetails?.points && activeEstimateDetails?.points?.map((point) => ( <> {point.value} ))} ); });