diff --git a/src/components/BookItem.astro b/src/components/BookItem.astro new file mode 100644 index 0000000000..85c788082a --- /dev/null +++ b/src/components/BookItem.astro @@ -0,0 +1,81 @@ +--- +import { Image } from 'astro:assets'; + +const { image, alt = 'Book Cover', title, author, links = [] } = Astro.props; + +interface Props { + image: ImageMetadata; + alt?: string; + title: string; + author: string; + links?: Array<{ + preText: string; + url: string; + text: string; + }>; +} +--- + +
+ {link.preText} {link.text} +
+ )) + } +