import React, { ReactNode } from 'react'; import { useTheme } from '../../theme/ThemeProvider'; import { Box } from '../Box'; import { CardContainer } from '../CardContainer'; import { Text } from '../Text'; import { TouchableComponent } from '../TouchableComponent'; interface CardProps { headerText?: string; mainText?: string; footerText?: string; rightComponent?: ReactNode; withCardContainer?: boolean; } export const CardAlternativeItem = ({ headerText, mainText, footerText, rightComponent, withCardContainer = true, bg, backgroundColor = 'white', onPress, ...props }: React.ComponentProps & CardProps) => { const { fonts } = useTheme(); const CardAlternativeItemComponent = ( cardProps: React.ComponentProps ) => { return ( {headerText && ( {headerText} )} {mainText && ( {mainText} )} {footerText && ( {footerText} )} {rightComponent && ( {rightComponent} )} ); }; if (withCardContainer) return ( ); return ; };