21 lines
444 B
TypeScript
Raw Normal View History

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 (
2024-05-24 20:52:39 -04:00
<div className="flex-1 w-full flex flex-col gap-20 items-center animate-in">
<h1>This is protected.</h1>
2024-05-24 20:52:39 -04:00
</div>
);
}