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: (value: number | null) => void; }; export const IssueEstimateSelect: React.FC = observer((props) => { const { value, onChange } = props; const { areEstimatesEnabledForCurrentProject, activeEstimateDetails } = useEstimate(); if (!areEstimatesEnabledForCurrentProject) return null; return ( {activeEstimateDetails?.points?.find((e) => e.key === value)?.value ?? "Estimate"} } onChange={onChange} width="w-full min-w-[8rem]" noChevron > <> None {activeEstimateDetails?.points && activeEstimateDetails.points?.map((point) => ( <> {point.value} ))} ); });