--- import type { LabelledValue } from '@/types/shared'; import Typography from './typography.astro'; export interface Props extends LabelledValue {} const { label, value, url } = Astro.props; const parsedValue = Array.isArray(value) ? value.join(', ') : value; const isHttpLink = url?.startsWith('http'); const target = isHttpLink ? '_blank' : '_self'; ---
{label}: { url ? ( {parsedValue} ) : ( {parsedValue} ) }