--- interface Props { type: 'badges' | 'logos' | 'mods' name: string nameFormatted?: string altText?: string extensions?: ('png' | 'svg')[] maxWidth?: number background?: string } const { name, type, altText, nameFormatted, background = 'white', maxWidth = 300, extensions = ['png', 'svg'], } = Astro.props; const path = `/media/branding/${type}/${name}`; ---
{extensions.map(ext => ( .{ext.toUpperCase()} ))}
{altText} {nameFormatted && {nameFormatted}}