Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/nperez0111/bookhive. Track your books, share your shelves, see what others are reading bookhive.buzz
atproto bluesky books bookshelf goodreads management-system
Something went wrong. Try again.
TypeScript
1234567891011121314151617181920212223242526272829303132/** User has finished reading the book */export const FINISHED = "buzz.bookhive.defs#finished";/** User is currently reading the book */export const READING = "buzz.bookhive.defs#reading";/** User wants to read the book */export const WANTTOREAD = "buzz.bookhive.defs#wantToRead";/** User has abandoned the book */export const ABANDONED = "buzz.bookhive.defs#abandoned";
export type BookStatus = (typeof BOOK_STATUS)[keyof typeof BOOK_STATUS] | null;
export const BOOK_STATUS = { ABANDONED, READING, WANTTOREAD, FINISHED,} as const;
export const BOOK_STATUS_MAP = { [ABANDONED]: "abandoned", [READING]: "reading", [WANTTOREAD]: "want to read", [FINISHED]: "read",} as const;
export const BOOK_STATUS_PAST_TENSE_MAP = { [ABANDONED]: "marked this book as abandoned", [READING]: "is reading this book", [WANTTOREAD]: "wants to read this book", [FINISHED]: "has read this book",} as const;