mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-16 12:59:39 +02:00
Move inactive projects out of active workspace: - bauntown (community website) - maerchenzauber (AI story generation) - memoro (voice memo app) - news (news aggregation) - nutriphi (nutrition tracking) - reader (reading app) - uload (URL shortener) - wisekeep (AI wisdom extraction) Update CLAUDE.md documentation: - Add presi to active projects - Document archived projects section - Update workspace configuration Archived apps can be re-activated by moving back to apps/ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
43 lines
1.1 KiB
TypeScript
43 lines
1.1 KiB
TypeScript
import React from 'react';
|
|
import { View } from 'react-native';
|
|
import { useTheme } from '~/features/theme/ThemeProvider';
|
|
|
|
interface StatisticsSectionSkeletonProps {
|
|
children: React.ReactNode;
|
|
showTitle?: boolean;
|
|
}
|
|
|
|
/**
|
|
* Skeleton wrapper for StatisticsSection
|
|
* Matches exact StatisticsSection structure: Title + marginBottom: 24
|
|
*/
|
|
const StatisticsSectionSkeleton: React.FC<StatisticsSectionSkeletonProps> = ({
|
|
children,
|
|
showTitle = true,
|
|
}) => {
|
|
const { isDark } = useTheme();
|
|
|
|
const skeletonColor = isDark ? 'rgba(255, 255, 255, 0.1)' : 'rgba(0, 0, 0, 0.1)';
|
|
|
|
return (
|
|
<>
|
|
{/* Section title skeleton - matches StatisticsSection title styling */}
|
|
{showTitle && (
|
|
<View
|
|
style={{
|
|
height: 22, // fontSize 18 * fontWeight 'bold' ≈ 22
|
|
width: '40%',
|
|
backgroundColor: skeletonColor,
|
|
borderRadius: 4,
|
|
marginBottom: 12, // matches marginBottom: 12 in StatisticsSection
|
|
}}
|
|
/>
|
|
)}
|
|
|
|
{/* Section content container - matches StatisticsSection structure */}
|
|
<View style={{ marginBottom: 24 }}>{children}</View>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default StatisticsSectionSkeleton;
|