const withDropdownHandlers = WrappedComponent => {
  return props => (
    <WrappedComponent
      {...props}
      onExpand={() => props.setExpanded(true)}
      onCollapse={() => props.setExpanded(false)}
      onChange={props.setValue}
    />
  );
};