import { isAfter } from "date-fns/fp";
import { redirect } from "next/navigation";

import PeasAlphaOpenClient from "./client";

export default function PeasAlphaOpen() {
  if (isAfter(new Date(), new Date("2025-07-23T23:59:59"))) {
    return (
      <PeasAlphaOpenClient />
    );
  } else {
    redirect("/");
  }
}
