mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-19 11:41:23 +02:00
Projects included: - maerchenzauber (NestJS backend + Expo mobile + SvelteKit web + Astro landing) - manacore (Expo mobile + SvelteKit web + Astro landing) - manadeck (NestJS backend + Expo mobile + SvelteKit web) - memoro (Expo mobile + SvelteKit web + Astro landing) This commit preserves the current state before monorepo restructuring. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
43 lines
No EOL
1.4 KiB
TypeScript
43 lines
No EOL
1.4 KiB
TypeScript
import React from 'react';
|
|
import { View, StyleSheet } from 'react-native';
|
|
import { useTheme } from '~/features/theme/ThemeProvider';
|
|
import { getSkeletonColor, skeletonBase, skeletonText, skeletonBox, skeletonRow, skeletonSpacing } from '../utils/skeletonStyles';
|
|
import { SkeletonAnimation } from '../utils/SkeletonAnimation';
|
|
|
|
export const MemoMetadataSkeleton: React.FC = () => {
|
|
const { colors, isDark } = useTheme();
|
|
const skeletonColor = getSkeletonColor(isDark, colors);
|
|
|
|
return (
|
|
<SkeletonAnimation style={styles.container}>
|
|
<View style={[skeletonRow, styles.dateRow]}>
|
|
<View style={[skeletonBase, skeletonText(14), styles.dateText, { backgroundColor: skeletonColor }]} />
|
|
</View>
|
|
<View style={[skeletonRow, styles.tagsRow]}>
|
|
<View style={[skeletonBase, skeletonBox(60, 24), styles.tag, { backgroundColor: skeletonColor }]} />
|
|
<View style={[skeletonBase, skeletonBox(80, 24), styles.tag, { backgroundColor: skeletonColor }]} />
|
|
<View style={[skeletonBase, skeletonBox(70, 24), styles.tag, { backgroundColor: skeletonColor }]} />
|
|
</View>
|
|
</SkeletonAnimation>
|
|
);
|
|
};
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
paddingHorizontal: 20, // Same as memo page
|
|
marginBottom: 24, // Add proper spacing
|
|
},
|
|
dateRow: {
|
|
marginBottom: skeletonSpacing.sm,
|
|
},
|
|
dateText: {
|
|
width: 150,
|
|
},
|
|
tagsRow: {
|
|
flexWrap: 'wrap',
|
|
gap: 8,
|
|
},
|
|
tag: {
|
|
borderRadius: 12,
|
|
},
|
|
}); |