--- import { ProfileIcon } from '../Icons'; export interface Props { type: 'photo' | 'initials'; name: string; image?: string; } const { type, name, image } = Astro.props; ---
{type === 'photo' && image ? (
{name}
) : ( {name.split(' ').map(word => word[0]).join('').toUpperCase()} )}