import React from "react"; // ui import { CustomSelect } from "@plane/ui"; // icons import { Triangle } from "lucide-react"; // fetch-keys import useEstimateOption from "hooks/use-estimate-option"; type Props = { value: number | null; onChange: (value: number | null) => void; }; export const IssueEstimateSelect: React.FC = ({ value, onChange }) => { const { isEstimateActive, estimatePoints } = useEstimateOption(); if (!isEstimateActive) return null; return ( {estimatePoints?.find((e) => e.key === value)?.value ?? "Estimate"} } onChange={onChange} width="w-full min-w-[8rem]" noChevron > <> None {estimatePoints && estimatePoints.map((point) => ( <> {point.value} ))} ); };