import {LOGIN_URL, REGISTER_AS_CLIENT_URL, SESSION_KEY} from "@/lib/constants";
import Link from "next/link";
import RegisterPatientForm from "@/app/(auth)/_components/RegisterPatientForm";
import {signUpWithEmail} from "@/lib/backend/authentication";
import RegisterClientForm from "@/app/(auth)/_components/RegisterClientForm";

export default function RegisterClient() {
    return (
        <div
            className="mt-8 md:mt-4 my-4 container-auto w-full max-w-lg p-4 bg-white border border-gray-200 rounded-lg shadow sm:p-6 md:p-8 dark:bg-gray-800 dark:border-gray-700">
            <div className="space-y-6">
                <div className={"flex flex-col gap-2"}>
                    <h5 className="tex-xl md:text-2xl font-bold text-green-950 dark:text-white">
                        Sign up for TeraChat Partner Account
                    </h5>
                    <p className={"text-sm"}>
                        Enter your details to create a partner account as a medical practitioner.
                    </p>
                </div>

                <RegisterClientForm/>

                <div>
                    <div className="text-sm font-medium text-gray-500 dark:text-gray-300">
                        Registered? <Link
                        href={LOGIN_URL}
                        className="text-green-700 hover:underline dark:text-green-500">
                        Log into your account
                    </Link>
                    </div>
                </div>
            </div>
        </div>
    )
}