import { PropsWithChildren } from 'react'; import { Text, View, useColorScheme } from 'react-native'; import { Colors } from 'react-native/Libraries/NewAppScreen'; import styles from '../styles/stylesheet'; type SectionProps = PropsWithChildren<{ title: string; }>; const Section = ({ title }: SectionProps): React.JSX.Element => { const isDarkMode = useColorScheme() === 'dark'; return ( {title} ); }; export { Section };