import { useState } from "react"; import Button from "@calcom/ui/Button"; import { ConfirmDialog } from "./confirmDialog"; interface IWipeMyCalActionButtonProps { trpc: any; } const WipeMyCalActionButton = (props: IWipeMyCalActionButtonProps) => { const { trpc } = props; const [openDialog, setOpenDialog] = useState(false); const { isSuccess, isLoading, data } = trpc.useQuery(["viewer.integrations"]); return (
{data && isSuccess && !isLoading && data?.other?.items.find((item: { type: string }) => item.type === "wipemycal_other") && ( <> )}
); }; export { WipeMyCalActionButton };