import { cookies } from "next/dist/client/components/headers";
import styles from "@/app/page.module.css";
import RegisterForm from "./RegisterForm";

export default function Page() {
  const cookieStore = cookies();
  const ticket = cookieStore.get("ticket");
  if (ticket === null) {
    return <div>Ticket is null?</div>;
  }

  return (
    <main className={styles.main}>
      <RegisterForm ticket={ticket!.value} />
    </main>
  );
}
