// (C) 2021-2025 GoodData Corporation
import { createSelector } from "@reduxjs/toolkit";
const selectSelf = createSelector((state) => state, (state) => state.renderMode);
/**
 * @internal
 */
export const selectRenderMode = createSelector(selectSelf, (state) => state.renderMode);
/**
 * @internal
 */
export const selectIsInViewMode = createSelector(selectRenderMode, (renderMode) => renderMode === "view");
/**
 * Returns whether the current Dashboard is on edit mode.
 *
 * @public
 */
export const selectIsInEditMode = createSelector(selectRenderMode, (renderMode) => renderMode === "edit");
/**
 * Returns whether the current Dashboard is on export mode.
 *
 * @internal
 */
export const selectIsInExportMode = createSelector(selectRenderMode, (renderMode) => renderMode === "export");
//# sourceMappingURL=renderModeSelectors.js.map