feat: add wishlist

This commit is contained in:
2026-09-30 19:15:57 +02:00
parent ab3bbb6338
commit 1f6061b998
57 changed files with 638 additions and 232 deletions
+22
View File
@@ -0,0 +1,22 @@
interface LinkValue {
value: string | null
}
export interface DiaryBookRow {
id: number
title: string | null
title_german: string | null
authors: LinkValue[]
read_date: string | null
}
export function toDiaryBook(row: DiaryBookRow): DiaryBook {
const original = (row.title ?? '').trim()
return {
id: row.id,
title: row.title_german?.trim() || original,
originalTitle: original,
authors: lookupValues(row.authors),
readDate: row.read_date || null
}
}