--- import { getI18n } from '../lib/i18n'; import type { FriendLink } from '../lib/types'; interface Props { friend: FriendLink; } const { friend } = Astro.props; const { t } = getI18n(Astro); ---
{friend.avatar ? (
{friend.name}
) : (
{friend.name.charAt(0).toUpperCase()}
)}

{friend.name}

{friend.description && (

{friend.description}

)}
{friend.category ? ( {friend.category} ) : ( {t('friendCard.externalLink')} )} {t('common.visit')}