mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 07:04:45 -04:00
16 lines
486 B
TypeScript
16 lines
486 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
import { isDevMode } from '../utils/test-modes'
|
|
import type { ApplicationState } from './application-state'
|
|
import { allReducers } from './reducers'
|
|
import { configureStore } from '@reduxjs/toolkit'
|
|
|
|
export const store = configureStore({
|
|
reducer: allReducers,
|
|
devTools: isDevMode
|
|
})
|
|
|
|
export const getGlobalState = (): ApplicationState => store.getState()
|