import { jsx as _jsx } from "react/jsx-runtime";
import { BackendProvider, WorkspaceProvider, useBackendStrict, useWorkspaceStrict } from "@gooddata/sdk-ui";
import { DashboardStoreProvider } from "../../model/react/DashboardStoreProvider.js";
export function KdaStoreProvider({ children, ...store }) {
    const backend = useBackendStrict(store.backend);
    const workspace = useWorkspaceStrict(store.workspace);
    return (_jsx(BackendProvider, { backend: backend, children: _jsx(WorkspaceProvider, { workspace: workspace, children: _jsx(DashboardStoreProvider, { ...store, children: children }) }) }));
}
