import { createStore } from "zustand";

interface State {
	currentAssetId?: string;

	setCurrentAssetId: (assetId: string) => void;
}

export const useMapStore = createStore<State>((set) => ({
	currentAssetId: undefined,

	setCurrentAssetId: (assetId: string) => {
		set({ currentAssetId: assetId });
	},
}));
