// The picture on a study's card: a coloured cover for the kind of book, with the book's name. import { coverFor } from '../utils/bookCovers.js'; export default function BookCover({ summary, className = '', compact = false }) { const { group, name, extra } = coverFor(summary); const [from, to] = group.colors; const id = `cover-${group.id}`; return (