feat: draw generated covers where a book has none

This commit is contained in:
2026-08-17 10:35:01 -04:00
parent 904d8fc76f
commit d16a90f08f
3 changed files with 27 additions and 3 deletions
@@ -1,7 +1,14 @@
<script lang="ts">
import type { Book } from '$lib/schema';
let { book, class: className = '' }: { book: Book; class?: string } = $props();
// Typed by what is drawn rather than by `Book`: the duplicates review holds
// candidates that carry a title and author names without a whole record, and a
// `Book` satisfies this shape anyway.
let {
book,
class: className = ''
}: {
book: { title: string; authors?: { name: string }[] | null };
class?: string;
} = $props();
/**
* Bookcloth tones rather than a point on the hue wheel.