mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-20 04:01:24 +02:00
- Rename barbiebox to figgos and integrate into monorepo - Remove separate git repository - Update package name to @figgos/game - Add dev scripts (figgos:dev, dev:figgos:ios, dev:figgos:android) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
25 lines
757 B
TypeScript
25 lines
757 B
TypeScript
import { Text, View } from 'react-native';
|
|
import { useTheme } from '~/utils/ThemeContext';
|
|
|
|
type ScreenContentProps = {
|
|
title: string;
|
|
path: string;
|
|
children?: React.ReactNode;
|
|
};
|
|
|
|
export const ScreenContent = ({ title, path, children }: ScreenContentProps) => {
|
|
const { isDark, theme } = useTheme();
|
|
|
|
return (
|
|
<View className={`${styles.container} ${isDark ? 'bg-gray-900' : 'bg-white'}`}>
|
|
<Text className={`${styles.title} ${isDark ? 'text-white' : 'text-black'}`}>{title}</Text>
|
|
<View className={`${styles.separator} ${isDark ? 'bg-gray-700' : 'bg-gray-200'}`} />
|
|
{children}
|
|
</View>
|
|
);
|
|
};
|
|
const styles = {
|
|
container: `items-center flex-1 justify-center`,
|
|
separator: `h-[1px] my-7 w-4/5 bg-gray-200`,
|
|
title: `text-xl font-bold`,
|
|
};
|