14 lines
396 B
TypeScript
14 lines
396 B
TypeScript
"use client";
|
|
|
|
import { AccountManager } from "@/components/account-manager";
|
|
import { BrowserAuthGuard, useBrowserAuth } from "@/components/browser-auth";
|
|
|
|
export default function AccountsPage() {
|
|
return <BrowserAuthGuard><AccountsContent /></BrowserAuthGuard>;
|
|
}
|
|
|
|
function AccountsContent() {
|
|
const { isAdmin } = useBrowserAuth();
|
|
return <AccountManager canManageAccounts={isAdmin} />;
|
|
}
|