// src/pages/admin/AdminStatsPage.tsx import React from 'react'; import { Link } from 'react-router-dom'; import { LoadingSpinner } from '../../components/LoadingSpinner'; import { useApplicationStatsQuery } from '../../hooks/queries/useApplicationStatsQuery'; import { ChartBarIcon } from '../../components/icons/ChartBarIcon'; import { UsersIcon } from '../../components/icons/UsersIcon'; import { DocumentDuplicateIcon } from '../../components/icons/DocumentDuplicateIcon'; import { BuildingStorefrontIcon } from '../../components/icons/BuildingStorefrontIcon'; import { BellAlertIcon } from '../../components/icons/BellAlertIcon'; import { BookOpenIcon } from '../../components/icons/BookOpenIcon'; import { StatCard } from '../../components/StatCard'; export const AdminStatsPage: React.FC = () => { // Use TanStack Query for data fetching (ADR-0005 Phase 5) const { data: stats, isLoading, error } = useApplicationStatsQuery(); return (
← Back to Admin Dashboard

Application Statistics

A high-level overview of key application metrics.

{isLoading && (
)} {error && (
{error.message}
)} {stats && !isLoading && !error && (
} /> } /> } /> } /> } /> } />
)}
); };