13 lines
378 B
TypeScript
13 lines
378 B
TypeScript
import { AuthGate } from "@/components/auth-gate";
|
|
import { InstallPrompt } from "@/components/install-prompt";
|
|
import { requirePageUser } from "@/lib/auth/guard";
|
|
|
|
export default async function ClockLayout({ children }: { children: React.ReactNode }) {
|
|
await requirePageUser("clock");
|
|
return (
|
|
<AuthGate>
|
|
{children}
|
|
<InstallPrompt />
|
|
</AuthGate>
|
|
);
|
|
}
|