You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
594 B
TypeScript
19 lines
594 B
TypeScript
import { connect } from 'react-redux';
|
|
import { StateType } from '../reducer';
|
|
|
|
import { mapDispatchToProps } from '../actions';
|
|
import { getFocusedSettingsSection } from '../selectors/section';
|
|
import { getTheme } from '../selectors/theme';
|
|
import { SessionMainPanel } from '../../components/SessionMainPanel';
|
|
|
|
const mapStateToProps = (state: StateType) => {
|
|
return {
|
|
theme: getTheme(state),
|
|
focusedSettingsSection: getFocusedSettingsSection(state),
|
|
};
|
|
};
|
|
|
|
const smart = connect(mapStateToProps, mapDispatchToProps);
|
|
|
|
export const SmartSessionMainPanel = smart(SessionMainPanel);
|