import React from 'react'; import { Image } from 'react-native'; import { format } from 'date-fns'; import { CardContainer } from '../../CardContainer'; import { CardBasicItem } from '../../CardBasicItem'; import { Box } from '../../Box'; import { TouchableComponent } from '../../TouchableComponent'; import { ImageSquare, Trash } from 'phosphor-react-native'; import { colors } from '../../../theme/theme'; interface IAddedCard { title: string; date: string; image?: string; onPress?: () => void; disabled?: boolean; } export const AddedCard = ({ disabled, image, date, title, onPress, }: IAddedCard) => ( {image ? ( ) : ( )} } footerText={`${format(new Date(date), 'K:m aaa')}`} footerTextVariant={'SubHead'} withCardContainer={false} /> );