diff --git a/apps/site/src/components/BookSpines.astro b/apps/site/src/components/BookSpines.astro new file mode 100644 index 0000000..0c162b0 --- /dev/null +++ b/apps/site/src/components/BookSpines.astro @@ -0,0 +1,146 @@ +--- +import { coverExists } from "../lib/cover-exists"; +import { spineStyle } from "../lib/spine-color"; + +interface Item { + slug: string; + title: string; + coverImage?: string; +} + +interface Props { + items: Item[]; + activeSlug?: string; +} + +const { items, activeSlug } = Astro.props; +--- + +