diff --git a/src/components/RecordList.astro b/src/components/RecordList.astro index e3049bc..3861f4b 100644 --- a/src/components/RecordList.astro +++ b/src/components/RecordList.astro @@ -2,11 +2,11 @@ import Gallery from './Gallery.astro'; import type { Entry } from '../data/records'; -interface Props { items: Entry[]; } -const { items } = Astro.props; +interface Props { items: Entry[]; columns?: 1 | 2; } +const { items, columns = 1 } = Astro.props; --- -