import { useSettings } from "@/store/settings"; import { ColorSwatches, CALENDAR_COLORS } from "@/ui/misc"; import { promptDialog } from "@/ui/dialog"; import { Plus, Trash2 } from "lucide-react"; import { t } from "@/lib/i18n"; export function CalendarSettings() { const s = useSettings((st) => st.settings); const update = useSettings((st) => st.update); return (

{t("Calendar & contacts")}

{t("Defaults for the calendar views and new events.")}

{t("Colour categories")}

{t("Outlook-style categories you can assign to events from the right-click menu or the event editor. The category name is stored on the event, so it syncs to other clients.")}

{s.eventCategories.map((c, i) => (

{c.name}

update({ eventCategories: s.eventCategories.map((x, j) => (j === i ? { ...x, color: col } : x)) })} />
))}

{t("Working hours")}

); }