import { create } from "zustand";
import { CaldavConfig } from "@calchat/shared";

interface CaldavConfigState {
  config: CaldavConfig | null;
  setConfig: (config: CaldavConfig | null) => void;
}

export const useCaldavConfigStore = create<CaldavConfigState>((set) => ({
  config: null,
  setConfig: (config: CaldavConfig | null) => {
    set({ config });
  },
}));
