const withDropdownState = WrappedComponent => {
  return class extends Component {
    render() {
      return (
        <WrappedComponent
          {...this.props}
          expanded={this.state.expanded}
          value={this.state.value}
          setExpanded={expanded => this.setState({ expanded })}
          setValue={value => this.setState({ value })}
        />
      );
    }
};