mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 16:19:39 +02:00
- Move finance, mail, moodlit to apps-archived for later development - Rename games/voxel-lava to games/voxelava 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
26 lines
665 B
TypeScript
26 lines
665 B
TypeScript
import React from 'react';
|
|
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 bg-black`,
|
|
separator: `h-[1px] my-7 w-4/5 bg-gray-800`,
|
|
title: `text-xl font-bold text-white`,
|
|
};
|