import React from "react"; // hooks import useEstimateOption from "hooks/use-estimate-option"; // ui import { CustomSelect, Tooltip } from "@plane/ui"; // icons import { Triangle } from "lucide-react"; // types import { IIssue } from "types"; type Props = { issue: IIssue; onChange: (data: number) => void; tooltipPosition?: "top" | "bottom"; customButton?: boolean; disabled: boolean; }; export const ViewEstimateSelect: React.FC = ({ issue, onChange, tooltipPosition = "top", customButton = false, disabled, }) => { const { isEstimateActive, estimatePoints } = useEstimateOption(issue.estimate_point); const estimateValue = estimatePoints?.find((e) => e.key === issue.estimate_point)?.value; const estimateLabels = (
{estimateValue ?? "None"}
); if (!isEstimateActive) return null; return ( <> None {estimatePoints?.map((estimate) => ( <> {estimate.value} ))} ); };