import React from "react"; import { HStack, Image, Text, VStack } from "native-base"; import type { AccessibilityProps, ImageSourcePropType } from "react-native"; import { EnhancedTouchableOpacity } from "@flip.id/ui-kit"; import { ForwardMedium } from "../../../icons/navigation"; interface ListItemProps { title: string; description?: string; icon?: ImageSourcePropType; customButton?: React.ReactElement; as?: React.ComponentType; onPress?: () => void; } export const ListItem: React.FC = ( props ) => { const { as, icon, onPress, title, description, customButton, ...rest } = props; const isDescAvailable = !!description; return ( {!!icon && ( )} {title} {description} {!!customButton ? ( customButton ) : ( )} ); }; export default ListItem;