41 lines
1.4 KiB
TypeScript
41 lines
1.4 KiB
TypeScript
"use client";
|
|
|
|
import { DashboardLayout } from '@/components/layout/DashboardLayout';
|
|
import {
|
|
HomeIcon,
|
|
BuildingOfficeIcon,
|
|
LinkIcon,
|
|
DocumentTextIcon,
|
|
Cog6ToothIcon,
|
|
SparklesIcon,
|
|
ServerIcon,
|
|
RectangleGroupIcon,
|
|
} from '@heroicons/react/24/outline';
|
|
|
|
const SUPERADMIN_MENU_ITEMS = [
|
|
{ id: 'dashboard', label: 'Dashboard', href: '/superadmin', icon: HomeIcon },
|
|
{ id: 'agencies', label: 'Agências', href: '/superadmin/agencies', icon: BuildingOfficeIcon },
|
|
{ id: 'plans', label: 'Planos', href: '/superadmin/plans', icon: SparklesIcon },
|
|
{ id: 'solutions', label: 'Soluções', href: '/superadmin/solutions', icon: RectangleGroupIcon },
|
|
{ id: 'templates', label: 'Templates', href: '/superadmin/signup-templates', icon: LinkIcon },
|
|
{ id: 'agency-templates', label: 'Templates Agência', href: '/superadmin/agency-templates', icon: DocumentTextIcon },
|
|
{ id: 'backup', label: 'Backup & Restore', href: '/superadmin/backup', icon: ServerIcon },
|
|
{ id: 'settings', label: 'Configurações', href: '/superadmin/settings', icon: Cog6ToothIcon },
|
|
];
|
|
|
|
import AuthGuard from '@/components/auth/AuthGuard';
|
|
|
|
export default function SuperAdminLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<AuthGuard>
|
|
<DashboardLayout menuItems={SUPERADMIN_MENU_ITEMS}>
|
|
{children}
|
|
</DashboardLayout>
|
|
</AuthGuard>
|
|
);
|
|
}
|