This commit is contained in:
2025-04-08 04:05:57 +02:00
parent cdd9f01214
commit 87832f46a3
14 changed files with 155 additions and 42 deletions

View File

@@ -0,0 +1,9 @@
import { isAdmin } from "../actions"
export default async function AdminWrap({children,}: Readonly<{ children: React.ReactNode }>) {
if (await isAdmin()) {
return <>{children}</>
}
return (<></>)
}