/*
 * Copyright (c) 2023-2025 Datalayer, Inc.
 * Distributed under the terms of the Modified BSD License.
 */
import { createStore } from 'zustand/vanilla';
import { useStore } from 'zustand';
export const datasourceStore = createStore((set, get) => ({
    datasources: [],
    updateDatasources: (datasources) => set((state) => ({
        datasources,
    })),
}));
export function useDatasourceStore(selector) {
    return useStore(datasourceStore, selector);
}
export default useDatasourceStore;
