// (C) 2021-2025 GoodData Corporation
import { createSlice } from "@reduxjs/toolkit";
import { listedDashboardsEntityAdapter } from "./listedDashboardsEntityAdapter.js";
const listedDashboardsSlice = createSlice({
    name: "listedDashboards",
    initialState: listedDashboardsEntityAdapter.getInitialState(),
    reducers: {
        setListedDashboards: listedDashboardsEntityAdapter.setAll,
        addListedDashboard: listedDashboardsEntityAdapter.upsertOne,
    },
});
export const listedDashboardsSliceReducer = listedDashboardsSlice.reducer;
// Spread "fixes" TS2742 error
export const listedDashboardsActions = { ...listedDashboardsSlice.actions };
//# sourceMappingURL=index.js.map