Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var ManyOptions = function ManyOptions() {
var _React$useState = React.useState([]),
selected = _React$useState[0],
setSelected = _React$useState[1];
var _React$useState2 = React.useState(dummyOptions),
options = _React$useState2[0],
setOptions = _React$useState2[1];
return React.createElement(Grommet, {
full: true,
theme: grommet
}, React.createElement(Box, {
fill: true,
align: "center",
justify: "start",
pad: "large"
}, React.createElement(Select, {
multiple: true,
closeOnChange: false,
placeholder: "select an option...",
selected: selected,
options: options,
dropHeight: "medium",
onClose: function onClose() {
return setOptions(options.sort(function (p1, p2) {
type: "fullscreen-exit"
})), !fullscreen && React.createElement("button", {
type: "button",
onClick: requestFullscreen
}, React.createElement(Icon, {
type: "fullscreen"
})))), x5playsinline && !x5videofullscreen && src && !loading && !waiting && !seeking && !ended && !kernelMsg && React.createElement("button", {
className: styles$1.blocked,
onClick: onPlayClick
}, React.createElement(Icon, {
type: "play-circle"
})), loading && !kernelMsg && React.createElement("div", {
className: styles$1.loading
}, React.createElement(Icon, {
type: "loading"
})), kernelMsg && React.createElement("div", {
className: styles$1.kernelMsg
}, kernelMsg.type, ": ", kernelMsg.detail));
});
ReactPlayerSkin.propTypes = {