mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-17 03:39:40 +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>
26 lines
No EOL
874 B
TypeScript
26 lines
No EOL
874 B
TypeScript
import React from 'react';
|
|
import { View, StyleSheet } from 'react-native';
|
|
import { useTheme } from '~/features/theme/ThemeProvider';
|
|
import { getSkeletonColor, skeletonBase, skeletonBox } from '../utils/skeletonStyles';
|
|
import { SkeletonAnimation } from '../utils/SkeletonAnimation';
|
|
|
|
export const QuestionButtonSkeleton: React.FC = () => {
|
|
const { colors, isDark } = useTheme();
|
|
const skeletonColor = getSkeletonColor(isDark, colors);
|
|
|
|
return (
|
|
<SkeletonAnimation style={styles.container}>
|
|
<View style={[skeletonBase, skeletonBox('100%', 48), styles.button, { backgroundColor: skeletonColor }]} />
|
|
</SkeletonAnimation>
|
|
);
|
|
};
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
paddingHorizontal: 20, // Same as questionButtonContainer
|
|
marginBottom: 12, // Same as questionButtonContainer
|
|
},
|
|
button: {
|
|
borderRadius: 24,
|
|
},
|
|
}); |