mirror of
https://github.com/Since-3/since3-portal.git
synced 2026-10-12 20:51:17 +00:00
10 lines
345 B
TypeScript
10 lines
345 B
TypeScript
import { redirect } from "next/navigation"
|
|
import { verifySession } from "@/lib/supabase/dal"
|
|
import TemplatesView from "@/modules/templates/ui/views/templates-view"
|
|
|
|
export default async function TemplatesPage() {
|
|
const session = await verifySession()
|
|
if (!session.isAdmin) redirect("/client/dashboard")
|
|
|
|
return <TemplatesView />
|
|
}
|