// (C) 2021-2026 GoodData Corporation
import { createSelector } from "@reduxjs/toolkit";
import { newMapForObjectWithIdentity } from "../../../_staging/metadata/objRefMap.js";
import { accessibleDashboardsEntityAdapter } from "./accessibleDashboardsEntityAdapter.js";
const selectSelf = createSelector((state) => state, (state) => state.accessibleDashboards);
const adapterSelectors = accessibleDashboardsEntityAdapter.getSelectors(selectSelf);
/**
 * Select all accessible dashboard in project.
 *
 * @alpha
 */
export const selectAccessibleDashboards = adapterSelectors.selectAll;
/**
 * Select if accessible dashboards were loaded
 *
 * @alpha
 */
export const selectAccessibleDashboardsLoaded = createSelector(selectSelf, (dashboards) => dashboards.isLoaded);
/**
 * Select all accessible dashboard in project and returns them in a mapping of obj ref to the insight object.
 *
 * @alpha
 */
export const selectAccessibleDashboardsMap = createSelector(selectAccessibleDashboards, (dashboards) => {
    return newMapForObjectWithIdentity(dashboards);
});
//# sourceMappingURL=accessibleDashboardsSelectors.js.map