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

Calendar & contacts

Defaults for the calendar views and new events.

Colour categories

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)) })} />
))}

Working hours

); }