--- import config from 'virtual:starlight/user-config'; import Icon from '@astrojs/starlight/user-components/Icon.astro'; const links = config.social || []; --- { links.length > 0 && ( <> {links.map(({ label, href, icon }) => ( {label} ))} > ) }