ecency-mobile/src/containers/themeContainer.js

20 lines
402 B
JavaScript
Raw Normal View History

/* eslint-disable no-unused-vars */
import React from 'react';
import { connect } from 'react-redux';
const ThemeContainer = ({ children, isDarkTheme }) => {
return (
children &&
children({
isDarkTheme,
})
);
};
2020-03-24 13:52:23 +03:00
const mapStateToProps = (state) => ({
isDarkTheme: state.application.isDarkTheme,
});
export default connect(mapStateToProps)(ThemeContainer);
2019-12-03 17:05:10 +03:00
/* eslint-enable */