feat(admin): add bottom navigation items and settings page to admin panel
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import AdminShell from './components/AdminShell.js';
|
||||
import { protectAdmin } from './protect.js';
|
||||
import { buildNavigationSections } from './navigation.js';
|
||||
import { buildNavigationSections, buildBottomNavItems } from './navigation.js';
|
||||
import { logoutAction } from '@zen/core/features/auth/actions';
|
||||
import { getAppName } from '@zen/core';
|
||||
import './widgets/index.server.js';
|
||||
@@ -9,6 +9,7 @@ export default async function AdminLayout({ children }) {
|
||||
const session = await protectAdmin();
|
||||
const appName = getAppName();
|
||||
const navigationSections = buildNavigationSections('/');
|
||||
const bottomNavItems = buildBottomNavItems('/');
|
||||
|
||||
return (
|
||||
<AdminShell
|
||||
@@ -16,6 +17,7 @@ export default async function AdminLayout({ children }) {
|
||||
onLogout={logoutAction}
|
||||
appName={appName}
|
||||
navigationSections={navigationSections}
|
||||
bottomNavItems={bottomNavItems}
|
||||
>
|
||||
{children}
|
||||
</AdminShell>
|
||||
|
||||
Reference in New Issue
Block a user