---
import type { Connections } from '../lib/content';
const { outgoing, incoming } = Astro.props as Connections;
---
{[
{ title: 'Links on this page', items: outgoing },
{ title: 'Pages that link here', items: incoming },
].map(({ title, items }) => (
{title}
({items.length})
{items.length ? (
) : (
None yet.
)}
))}