import { useRouter } from "next/navigation"; import type { Dispatch, SetStateAction } from "react"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { Check } from "@calcom/ui/components/icon"; const StepDone = (props: { currentStep: number; nextStepPath: string; setIsLoading: Dispatch>; }) => { const router = useRouter(); const { t } = useLocale(); return (
{ props.setIsLoading(true); e.preventDefault(); router.replace(props.nextStepPath); }}>

{t("all_done")}

); }; export default StepDone;