import { LinkCardProps } from '@junwon/centum/types' import { YStack, XStack, Paragraph, isWeb } from 'tamagui' function CardTitle({ title }: { title: string }) { const cardTitleStyle = isWeb ? { fontFamily: 'Spline+Sans', fontWeight: 500, } : { fontFamily: 'SplineSansMedium' } return ( {title} ) } function CardHeadline({ headline }: { headline: string }) { const cardContentStyle = isWeb ? { fontFamily: 'Spline+Sans', fontWeight: 300, } : { fontFamily: 'SplineSansLight' } const truncatedHeadline = headline.length > 160 ? headline.slice(0, 160) + '...' : headline return ( {truncatedHeadline} ) } export const LinkCard: React.FC = (props) => { const { title, headline, link_target_kind, link_code, onLinkPress } = props return ( onLinkPress?.(link_target_kind, link_code)} > ) }