import type { ReactNode } from "react"; import { useBook } from "../store/useBook"; import { Icon } from "./Icon"; const LANGUAGES = [ { value: "en", label: "English" }, { value: "es", label: "Spanish" }, { value: "fr", label: "French" }, { value: "de", label: "German" }, { value: "it", label: "Italian" }, { value: "pt", label: "Portuguese" }, ]; function Field({ label, children }: { label: string; children: ReactNode }) { return ( ); } export function Settings({ onClose, onSave }: { onClose: () => void; onSave: () => void }) { const book = useBook((s) => s.book); const setMetadata = useBook((s) => s.setMetadata); const setSettings = useBook((s) => s.setSettings); if (!book) return null; const { metadata, settings } = book; return (