mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-23 01:56:52 +03:00
16 lines
532 B
TypeScript
16 lines
532 B
TypeScript
import { Store } from 'redux';
|
|
import { ComponentType } from 'react';
|
|
import { TodoState } from '../reducers';
|
|
import { TodoAction } from '../actions/TodoActions';
|
|
|
|
interface Props {
|
|
store: Store<TodoState, TodoAction>;
|
|
}
|
|
const Root: ComponentType<Props> =
|
|
process.env.NODE_ENV === 'production'
|
|
? // eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
require('./Root.prod').default
|
|
: // eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
require('./Root.dev').default;
|
|
export default Root;
|