import { create } from "zustand";

export interface Words {
  flow?: string;
  folder?: string;
}

interface WordingProps {
  flow: string;
  folder: string;
  setCurrentWording: (wording: Words) => void;
}

export const useWording = create<WordingProps>()((set, get) => ({
  flow: "Flow",
  folder: "Folder",
  setCurrentWording: (wording: Words) =>
    set({ flow: wording.flow, folder: wording.folder }),
}));
