mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-22 21:11:14 +00:00
499458f8b2
A held book write is described with its findings, drawn as a thumbnail pair, bounced once when a severe finding is left, and undone in one step.
20 lines
750 B
TypeScript
20 lines
750 B
TypeScript
import type { CardView } from '../cardTypes';
|
|
import { BookPageBody, BookPageFacts, BookPageSubject } from './BookPageSlots';
|
|
|
|
/**
|
|
* How the photo book's kind draws in the chat: a change row of a page with
|
|
* the pages it works on as its subject, its facts on the faint line and the
|
|
* page before and after under it. A page card is only ever a change, so it
|
|
* has no block of its own. This file only maps the kind to its view: the
|
|
* components live in a sibling file, since a file that exports anything
|
|
* besides components breaks fast refresh.
|
|
*/
|
|
export const BOOK_VIEWS = {
|
|
bookPage: {
|
|
ownsSubject: true,
|
|
Aside: BookPageSubject,
|
|
Facts: BookPageFacts,
|
|
Body: BookPageBody,
|
|
},
|
|
} satisfies { [K in 'bookPage']: CardView<K> };
|