import React from "react"; import { HStack, Pressable, Text, VStack } from "native-base"; import type { AccessibilityProps } from "react-native"; export interface TransactionCardProps { icon?: React.ReactNode; leftTitle?: string; leftSubtitle?: string; leftLowertitle?: string; rightTitle?: string; rightSubtitleComponent?: React.ReactNode; rightLowertitle?: string; onPress: () => void; } export const TransactionCard: React.FC< TransactionCardProps & AccessibilityProps > = (props) => { const { onPress, leftTitle, leftSubtitle, leftLowertitle, rightTitle, rightSubtitleComponent, rightLowertitle, ...rest } = props; return ( {props.icon} {leftTitle} {leftSubtitle} {leftLowertitle} {rightTitle} {rightSubtitleComponent} {rightLowertitle} ); }; export default TransactionCard;