'use client'; import { PATH_ADMIN_CONFIGURATION, PATH_ADMIN_INSIGHTS } from '@/app/paths'; import LinkWithStatus from '@/components/LinkWithStatus'; import ResponsiveText from '@/components/primitives/ResponsiveText'; import clsx from 'clsx/lite'; import ClearCacheButton from '@/admin/ClearCacheButton'; import { usePathname } from 'next/navigation'; import { useAppState } from '@/state/AppState'; import InsightsIndicatorDot from './insights/InsightsIndicatorDot'; const ADMIN_INFO_PAGES = [{ title: 'App Insights', titleShort: 'Insights', path: PATH_ADMIN_INSIGHTS, }, { title: 'Configuration', titleShort: 'Config', path: PATH_ADMIN_CONFIGURATION, }]; const ADMIN_INFO_PAGE_WITHOUT_INSIGHTS = [{ title: 'App Configuration', path: PATH_ADMIN_CONFIGURATION, }] as typeof ADMIN_INFO_PAGES; export default function AdminInfoPage({ includeInsights, }: { includeInsights: boolean }) { const pathname = usePathname(); const pages = includeInsights ? ADMIN_INFO_PAGES : ADMIN_INFO_PAGE_WITHOUT_INSIGHTS; const hasMultiplePages = pages.length > 1; const { insightIndicatorStatus } = useAppState(); return (