diff --git a/src/admin/AdminAppInsights.tsx b/src/admin/AdminAppInsights.tsx index 58286cda..c25fdd3b 100644 --- a/src/admin/AdminAppInsights.tsx +++ b/src/admin/AdminAppInsights.tsx @@ -7,6 +7,7 @@ import { } from '@/photo/db/query'; import AdminAppInsightsClient from './AdminAppInsightsClient'; import { APP_CONFIGURATION } from '@/app-core/config'; + export default async function AdminAppInsights() { const [ { count, dateRange }, diff --git a/src/admin/AdminAppInsightsClient.tsx b/src/admin/AdminAppInsightsClient.tsx index 9c755287..0e512f85 100644 --- a/src/admin/AdminAppInsightsClient.tsx +++ b/src/admin/AdminAppInsightsClient.tsx @@ -5,7 +5,9 @@ import Note from '@/components/Note'; import WarningNote from '@/components/WarningNote'; import { dateRangeForPhotos, PhotoDateRange } from '@/photo'; import clsx from 'clsx/lite'; +import { ReactNode } from 'react'; import { HiSparkles } from 'react-icons/hi'; +import { PiWarningBold } from 'react-icons/pi'; type Recommendation = 'fork' | @@ -52,15 +54,53 @@ export default function AdminAppInsightsClient({ {title} ; + const renderRow = (icon: ReactNode, children: ReactNode) => +