import { FC, useEffect, useState } from "react"; import { observer } from "mobx-react"; import { IEstimate } from "@plane/types"; import { Button } from "@plane/ui"; // components import { EModalPosition, EModalWidth, ModalCore } from "@/components/core"; // types import { TEstimateSystemKeys, TEstimateSystemKeyObject } from "@/components/estimates/types"; type Props = { isOpen: boolean; handleClose: () => void; data?: IEstimate; }; export const UpdateEstimateModal: FC = observer((props) => { // props const { handleClose, isOpen } = props; // states const [estimatePoints, setEstimatePoints] = useState( undefined ); useEffect(() => { if (!isOpen) { setEstimatePoints(undefined); } }, [isOpen]); // derived values return (
{/* heading */}
Heading
{/* estimate steps */}
Content
{estimatePoints && ( )}
); });