import { create } from "zustand";

interface MarkState {
  NavRadio: any;
  setNavRadio: (Key: any) => void;
  BodyRadio: any;
  setBodyRadio: (Key: any) => void;
  HeaderData: any;
  setHeaderData: (Key: any) => void;
  TypeData: any;
  setTypeData: (Key: any) => void;
}

export const useMarkState = create<MarkState>((set) => ({
  NavRadio: null,
  setNavRadio: (Key) => set((state) => ({ NavRadio: Key })),
  BodyRadio: null,
  setBodyRadio: (Key) => set((state) => ({ BodyRadio: Key })),
  HeaderData: null,
  setHeaderData: (Key) => set((state) => ({ HeaderData: Key })),
  TypeData: null,
  setTypeData: (Key) => set((state) => ({ TypeData: Key })),
}));
