import React from 'react' import enhanceWithClickOutside from 'react-click-outside' import SettingsIcon from './svg/Settings' import ThemeSelect from './ThemeSelect' import Slider from './Slider' import Toggle from './Toggle' import { PALETTE } from '../lib/constants' class Settings extends React.Component { constructor(props) { super() this.state = { isVisible: false } this.toggle = this.toggle.bind(this) } toggle() { this.setState({ isVisible: !this.state.isVisible }) } handleClickOutside() { this.setState({ isVisible: false }); } render() { return (