import React from "react"; import { AuthPageProps } from "@pankod/refine-core"; import { BoxProps, CardProps } from "@mantine/core"; import { UseFormInput } from "@mantine/form/lib/types"; import { LoginPage, RegisterPage, ForgotPasswordPage, UpdatePasswordPage, } from "./components"; export type FormPropsType = UseFormInput & { onSubmit?: (values: any) => void; }; export type AuthProps = AuthPageProps; /** * **refine** has a default auth page form served on the `/login` route when the `authProvider` configuration is provided. * @see {@link https://refine.dev/docs/api-reference/mantine/components/mantine-auth-page/} for more details. */ export const AuthPage: React.FC = (props) => { const { type } = props; const renderView = () => { switch (type) { case "register": return ; case "forgotPassword": return ; case "updatePassword": return ; default: return ; } }; return <>{renderView()}; };