import { FC, Fragment, useCallback, useEffect, useState } from "react"; import { Dialog, Transition } from "@headlessui/react"; // ui import { Button } from "@plane/ui"; // types import { TViewOperations } from "../types"; type TViewDuplicateConfirmationModal = { viewId: string; viewOperations: TViewOperations; }; export const ViewDuplicateConfirmationModal: FC = (props) => { const { viewId, viewOperations } = props; // state const [modalToggle, setModalToggle] = useState(false); const [loader, setLoader] = useState(false); const modalOpen = useCallback(() => setModalToggle(true), [setModalToggle]); const modalClose = useCallback(() => { setModalToggle(false); }, [setModalToggle]); useEffect(() => { if (viewId) modalOpen(); }, [viewId, modalOpen, modalClose]); const onContinue = async () => { setLoader(true); setLoader(false); }; return (
Content
); };