diff --git a/src/admin/AdminInfoNav.tsx b/src/admin/AdminInfoNav.tsx index b1718eb6..3495440a 100644 --- a/src/admin/AdminInfoNav.tsx +++ b/src/admin/AdminInfoNav.tsx @@ -6,9 +6,11 @@ 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 { FaCircle } from 'react-icons/fa6'; const ADMIN_INFO_PAGES = [{ - titleShort: 'Insights', + title: 'Insights', path: PATH_ADMIN_INSIGHTS, }, { title: 'Configuration', @@ -16,6 +18,11 @@ const ADMIN_INFO_PAGES = [{ 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, }: { @@ -23,20 +30,19 @@ export default function AdminInfoPage({ }) { const pathname = usePathname(); - const pages = ADMIN_INFO_PAGES - .filter(({ titleShort }) => ( - titleShort !== 'Insights' || - includeInsights - )); + const pages = includeInsights + ? ADMIN_INFO_PAGES + : ADMIN_INFO_PAGE_WITHOUT_INSIGHTS; const hasMultiplePages = pages.length > 1; + const { insightIndicatorStatus } = useAppState(); + return (