import { createClient } from "@/utils/supabase/server";
import { redirect } from "next/navigation";

export default async function Commissions() {
  const supabase = createClient();

  const {
    data: { user },
  } = await supabase.auth.getUser();

  if (!user) {
    return redirect("/login");
  }

  return (
    <h1>This is protected.</h1>
  );
}
