mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-25 14:22:14 +03:00
20 lines
402 B
JavaScript
20 lines
402 B
JavaScript
/* eslint-disable no-unused-vars */
|
|
import React from 'react';
|
|
import { connect } from 'react-redux';
|
|
|
|
const ThemeContainer = ({ children, isDarkTheme }) => {
|
|
return (
|
|
children &&
|
|
children({
|
|
isDarkTheme,
|
|
})
|
|
);
|
|
};
|
|
|
|
const mapStateToProps = (state) => ({
|
|
isDarkTheme: state.application.isDarkTheme,
|
|
});
|
|
|
|
export default connect(mapStateToProps)(ThemeContainer);
|
|
/* eslint-enable */
|