- {options.map(option => (
-
- ))}
-
- }
- >
-
- {selected && renderButton(selected)}
-
-
-
- );
- }
-}
-
-export default withTheme(PopoverDropdown);
+ } = props;
+
+ const theme = useTheme();
+ const selected = options.find(opt => opt.value === value);
+ return (
+