mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 14:19: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>
25 lines
642 B
TypeScript
25 lines
642 B
TypeScript
import { Text, View } from 'react-native';
|
|
|
|
import { EditScreenInfo } from './EditScreenInfo';
|
|
|
|
type ScreenContentProps = {
|
|
title: string;
|
|
path: string;
|
|
children?: React.ReactNode;
|
|
};
|
|
|
|
export const ScreenContent = ({ title, path, children }: ScreenContentProps) => {
|
|
return (
|
|
<View className={styles.container}>
|
|
<Text className={styles.title}>{title}</Text>
|
|
<View className={styles.separator} />
|
|
<EditScreenInfo path={path} />
|
|
{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`,
|
|
};
|