import React from 'react'; import { View, StyleSheet } from 'react-native'; import { useTheme } from '~/features/theme/ThemeProvider'; import { getSkeletonColor, skeletonBase, skeletonText, skeletonSpacing } from '../utils/skeletonStyles'; import { SkeletonAnimation } from '../utils/SkeletonAnimation'; interface TranscriptSkeletonProps { lineCount?: number; } export const TranscriptSkeleton: React.FC = ({ lineCount = 8 }) => { const { colors, isDark } = useTheme(); const skeletonColor = getSkeletonColor(isDark, colors); return ( {Array.from({ length: lineCount }).map((_, index) => ( ))} ); }; const styles = StyleSheet.create({ container: { paddingHorizontal: 20, // Match memo page spacing marginBottom: 20, // Same as transcriptContainer }, transcriptCard: { borderRadius: 12, borderWidth: 1, padding: 16, shadowColor: '#000', shadowOffset: { width: 0, height: 1 }, shadowOpacity: 0.05, shadowRadius: 2, elevation: 2, }, headerLine: { width: '40%', marginBottom: skeletonSpacing.md, }, content: { gap: skeletonSpacing.xs, }, textLine: { marginBottom: 2, }, });