--- interface Link { href: string; text: string; } const links: Link[] = [ { href: '/', text: 'HN' }, { href: '/new', text: 'New' }, { href: '/show', text: 'Show' }, { href: '/ask', text: 'Ask' }, { href: '/job', text: 'Jobs' }, ]; --- { links.map(({ href, text }) => ( {text} )) } Built with Astro