import React from 'react'; import { View } from 'react-native'; import { useTheme } from '~/features/theme/ThemeProvider'; import colors from '~/tailwind.config.js'; /** * Skeleton loader for WeekCard component */ const WeekCardSkeleton: React.FC = () => { 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)'; const skeletonColor = isDark ? 'rgba(255, 255, 255, 0.1)' : 'rgba(0, 0, 0, 0.1)'; return ( {/* Header with week title and dates */} {/* Week title skeleton */} {/* Date range skeleton */} {/* Stats grid */} {/* 4 stat columns */} {[1, 2, 3, 4].map((index) => ( {/* Stat value skeleton */} {/* Stat label skeleton */} ))} ); }; export default WeekCardSkeleton;