import Store from '../../store'; import * as selectors from '../../store/selectors'; import * as actions from '../../store/actions'; import Content from '../ui/Content'; import List from '../ui/List'; import ListItem from '../ui/ListItem'; import Toggle from '../ui/Toggle'; const Settings = ({ selected }) => { const enableNotifications = Store.useState(); const settings = Store.useState(selectors.getSettings); return ( Enable Notifications actions.setSettings({ ...settings, enableNotifications: e.target.checked, }) } /> ); }; export default Settings;