Files
lbry-desktop/ui/component/wallpaper/index.js

15 lines
548 B
JavaScript

import { connect } from 'react-redux';
import Wallpaper from './view';
import * as SETTINGS from 'constants/settings';
import { makeSelectClientSetting } from 'redux/selectors/settings';
const select = (state) => ({
disableBackground: makeSelectClientSetting(SETTINGS.DISABLE_BACKGROUND)(state),
backgroundMode: makeSelectClientSetting(SETTINGS.APP_BACKGROUND_MODE)(state),
customBackgroundImage: makeSelectClientSetting(SETTINGS.CUSTOM_BACKGROUND_IMAGE)(state),
});
const perform = {};
export default connect(select, perform)(Wallpaper);