import React from 'react'; import { View } from 'react-native'; import { useTheme } from '~/features/theme/ThemeProvider'; import colors from '~/tailwind.config.js'; import StatisticsSectionSkeleton from './StatisticsSectionSkeleton'; import PeriodStatsCardSkeleton from './PeriodStatsCardSkeleton'; import StatRowSkeleton from './StatRowSkeleton'; import TagAnalyticsCardSkeleton from './TagAnalyticsCardSkeleton'; import WeekdayChartSkeleton from './WeekdayChartSkeleton'; interface StatisticsPageSkeletonProps { selectedView: string; } /** * Complete skeleton loader for the Statistics page */ const StatisticsPageSkeleton: React.FC = ({ selectedView }) => { const { isDark, themeVariant } = useTheme(); const contentBackgroundColor = isDark ? (colors as any).theme?.extend?.colors?.dark?.[themeVariant]?.contentBackground : (colors as any).theme?.extend?.colors?.[themeVariant]?.contentBackground; const borderColor = isDark ? 'rgba(255, 255, 255, 0.1)' : 'rgba(0, 0, 0, 0.1)'; if (selectedView === 'weeks') { return ( <> {/* Weekly Chart Overview Skeleton */} {/* Weekly chart content would go here */} {/* Individual Week Cards Skeleton */} {[1, 2, 3, 4, 5].map((index) => ( ))} ); } return ( <> {/* Overview Section Skeleton - no title for first section */} {/* Activity & Productivity Skeleton */} {/* Memo Engagement Skeleton */} {/* Tag Analytics Skeleton */} {/* Audio Insights Skeleton */} {/* Location Data Skeleton */} ); }; export default StatisticsPageSkeleton;