From 041619821ff01784a07b6d2a2acf233e2bf9aa2f Mon Sep 17 00:00:00 2001 From: PJ Date: Sat, 20 Jun 2026 18:12:15 -0400 Subject: [PATCH] feat(settings): draft Book setup, commit changes only on Save --- src/components/Settings.tsx | 50 ++++++++++++++++++++++++++----------- 1 file changed, 36 insertions(+), 14 deletions(-) diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx index 6900d19..049ba73 100644 --- a/src/components/Settings.tsx +++ b/src/components/Settings.tsx @@ -1,3 +1,4 @@ +import { useState } from "react"; import type { ReactNode } from "react"; import { useBook } from "../store/useBook"; import { Icon } from "./Icon"; @@ -11,6 +12,15 @@ const LANGUAGES = [ { value: "pt", label: "Portuguese" }, ]; +interface Draft { + title: string; + subtitle: string; + author: string; + isbn: string; + language: string; + bleed: boolean; +} + function Field({ label, children }: { label: string; children: ReactNode }) { return (