feat: draw generated covers where a book has none
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user