import { createSlice } from '@reduxjs/toolkit'; import { closeDrawerReducer, displayBioEntitiesListReducer, displayChemicalsListReducer, displayDrugsListReducer, displayEntityDetailsReducer, displayGroupedSearchResultsReducer, displayMirnaListReducer, openDrawerReducer, openReactionDrawerByIdReducer, openSearchDrawerWithSelectedTabReducer, openSubmapsDrawerReducer, } from './drawer.reducers'; import { DRAWER_INITIAL_STATE } from './drawer.constants'; const drawerSlice = createSlice({ name: 'drawer', initialState: DRAWER_INITIAL_STATE, reducers: { openDrawer: openDrawerReducer, openSearchDrawerWithSelectedTab: openSearchDrawerWithSelectedTabReducer, openSubmapsDrawer: openSubmapsDrawerReducer, closeDrawer: closeDrawerReducer, displayDrugsList: displayDrugsListReducer, displayChemicalsList: displayChemicalsListReducer, displayMirnaList: displayMirnaListReducer, displayBioEntitiesList: displayBioEntitiesListReducer, displayGroupedSearchResults: displayGroupedSearchResultsReducer, displayEntityDetails: displayEntityDetailsReducer, openReactionDrawerById: openReactionDrawerByIdReducer, }, }); export const { openDrawer, openSearchDrawerWithSelectedTab, openSubmapsDrawer, closeDrawer, displayDrugsList, displayChemicalsList, displayMirnaList, displayBioEntitiesList, displayGroupedSearchResults, displayEntityDetails, openReactionDrawerById, } = drawerSlice.actions; export default drawerSlice.reducer;