mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-06 20:37:45 +00:00
17 lines
352 B
TypeScript
17 lines
352 B
TypeScript
import { build } from "@server/build";
|
|
import { redirect } from "next/navigation";
|
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
interface LayoutProps {
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export default async function AdminLicenseLayout(props: LayoutProps) {
|
|
if (build !== "enterprise") {
|
|
redirect(`/admin`);
|
|
}
|
|
|
|
return props.children;
|
|
}
|