--- // 年度別の賛否一覧ページの末尾に、前年度・次年度へのリンクを // Starlight のページネーションと同じ見た目で表示する。 // 年度別ページはサイドバーに登録していないため、Starlight 標準の // Pagination では前後関係が決まらない。ここで明示的にリンクを渡す。 import { Icon } from "@astrojs/starlight/components"; interface Link { href: string; label: string; } interface Props { prev?: Link; next?: Link; } const { prev, next } = Astro.props; --- { (prev || next) && ( ) }