redux-devtools/packages/redux-devtools-slider-monitor/examples/todomvc/containers/Root.ts

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;