import React from "react"; // ui import { CustomSelect } from "components/ui"; // icons import { PlayIcon } from "@heroicons/react/24/outline"; // 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} position="right" width="w-full min-w-[8rem]" noChevron > <> None {estimatePoints && estimatePoints.map((point) => ( <> {point.value} ))} ); };