import { ServiceTypes } from "@/api/customservice";
import { create } from "zustand";

interface State {
    socials: ServiceTypes[];
}

interface Action {
    setSocials: (value: ServiceTypes[]) => void;
}

const initialState: State = {
    socials: [],
};

export const useSocialStore = create<State & Action>()((set, get) => {
    return {
        ...initialState,
        setSocials: (value) => set(() => ({ socials: value })),

        reset: () => set(initialState),
    };
});
