--- import { Icon } from 'astro-icon/components' import type { Link } from '../constants/links' export interface Props { links: Link[] } let { links } = Astro.props if (Astro.url.pathname !== '/') { links = [ { url: '/', icon: 'home', }, ].concat(links) } ---