"use client"; import { FC } from "react"; import { redirect } from "next/navigation"; import { Button, PinInput, Stack } from "@mantine/core"; import { useForm } from "@mantine/form"; import style from "@/components/VerifyPhoneForm/VerifyPhone.module.css"; type VerifyNumberForm = { code: string; }; const VerifyPhoneForm: FC = () => { const form = useForm({ initialValues: { code: "", }, validate: { code: code => code.length !== 6 && "Введите весь код", }, }); const handleSubmit = (values: VerifyNumberForm) => { console.log(values); }; const navigateToLogin = () => redirect("/"); return (
); }; export default VerifyPhoneForm;