import React from 'react'; import { View, SafeAreaView, StatusBar, StyleSheet, ViewStyle } from 'react-native'; import { GameHeader } from './GameHeader'; interface GameContainerProps { children: React.ReactNode; title: string; score?: number; timeLeft?: number; progress?: number; subtitle?: string; backgroundColor?: string; showHeader?: boolean; statusBarStyle?: 'light-content' | 'dark-content'; style?: ViewStyle; headerStyle?: ViewStyle; } /** * Container component that wraps games with consistent layout * Provides safe area, status bar, and header management */ export const GameContainer: React.FC = ({ children, title, score, timeLeft, progress, subtitle, backgroundColor = '#F8F9FA', showHeader = true, statusBarStyle = 'dark-content', style, headerStyle }) => { return ( {showHeader && ( )} {children} ); }; const styles = StyleSheet.create({ container: { flex: 1, }, content: { flex: 1, paddingHorizontal: 16, }, });