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

{t("all_done")}

); }; export default StepDone;