import React, { ReactNode } from "react"; import { StyleSheet, View } from "react-native"; import { Text } from "react-native-paper"; export const Section: React.FC<{ children?: ReactNode; description?: string; title?: string; }> = ({ children, description, title }) => { return ( {title ? ( {title} ) : null} {description ? {description} : null} {children} ); }; const styles = StyleSheet.create({ titleText: { fontWeight: "bold", }, sectionContainer: { marginTop: 18, }, childrenContainer: { alignItems: "center", flexDirection: "row", }, });