import { PropsWithChildren, ReactNode, useState } from "react"; import { Pressable, TouchableOpacity, TouchableOpacityProps, View, ViewProps, } from "react-native"; import { Text } from "../common/Text"; interface Props extends TouchableOpacityProps { title?: string | null | undefined; text?: string | null | undefined; children?: ReactNode; iconAfter?: ReactNode; iconBefore?: ReactNode; } export const ListItem: React.FC> = ({ title, text, iconAfter, iconBefore, children, ...props }) => { return ( {iconBefore && {iconBefore}} {title} {text} {iconAfter && {iconAfter}} ); };