import MAdminSchoolHolidayCatalog from './MAdminSchoolHolidayCatalog' import MAdminPaddleRegionsPanel from './MAdminPaddleRegionsPanel' import { useState } from 'react' import { ArrowUp, Bell, Blocks, Briefcase, Bug, ChevronDown, ChevronLeft, Database, FileText, Github, HardDrive, Map, Plug, Puzzle, ScrollText, Settings as SettingsIcon, Shield, SlidersHorizontal, UserCog, UserPlus, Users, } from 'lucide-react' import type { LucideIcon } from 'lucide-react' import { useTranslation } from '../../../i18n' import { useCountUp } from '../../../hooks/useCountUp' import { useAdmin } from '../../../pages/admin/useAdmin' import MAdminAddonManager from './MAdminAddonManager' import MAdminMcpTokensPanel from './MAdminMcpTokensPanel' import MAdminPluginsPanel from './MAdminPluginsPanel' import MAdminAuditLogPanel from './MAdminAuditLogPanel' import MAdminBackupPanel from './MAdminBackupPanel' import MAdminCategoryManager from './MAdminCategoryManager' import MAdminDefaultUserSettings from './MAdminDefaultUserSettings' import MAdminDevNotificationsPanel from './MAdminDevNotificationsPanel' import MAdminGitHubPanel from './MAdminGitHubPanel' import MAdminPackingTemplateManager from './MAdminPackingTemplateManager' import MAdminNotificationsSection from './MAdminNotificationsSection' import MAdminSettingsSection from './MAdminSettingsSection' import MAdminSheets from './MAdminSheets' import MAdminStoragePanel from './MAdminStoragePanel' import MAdminUsersSection from './MAdminUsersSection' import { MAdminButton } from './MAdminUi' import { managedAdminTabs } from '../../../managed' import { useIsSplit } from '../../../hooks/sizeClass' import MSectionNav, { MSectionRow, type MSection } from '../../components/MSectionNav' // Stat card of the 2×2 grid (design §6.3): 34px icon tile, 19px/800 number, // small tracking label. Count-up animation matches the desktop stat cards. function MAdminStat({ label, value, icon: Icon }: { label: string; value: number; icon: LucideIcon }) { const animated = useCountUp(value, 900) return (