import { PropsWithChildren, ReactNode } from "react"; import { View } from "react-native"; import { Text } from "./common/Text"; type Props = { title?: string | null | undefined; subTitle?: string | null | undefined; children?: ReactNode; iconAfter?: ReactNode; }; export const ListItem: React.FC> = ({ title, subTitle, iconAfter, children, }) => { return ( {title} {subTitle && {subTitle}} {iconAfter} ); };