| 1 |
import { __rest } from "tslib"; |
| 2 |
import { jsx as _jsx } from "react/jsx-runtime"; |
| 3 |
import { forwardRef } from 'react'; |
| 4 |
import { css } from '@patternfly/react-styles'; |
| 5 |
import { MenuItem } from '../Menu'; |
| 6 |
const SelectOptionBase = (_a) => { |
| 7 |
var { children, className, innerRef, value } = _a, props = __rest(_a, ["children", "className", "innerRef", "value"]); |
| 8 |
return (_jsx(MenuItem, Object.assign({ itemId: value, ref: innerRef, className: css(className) }, props, { children: children }))); |
| 9 |
}; |
| 10 |
export const SelectOption = forwardRef((props, ref) => (_jsx(SelectOptionBase, Object.assign({}, props, { innerRef: ref })))); |
| 11 |
SelectOption.displayName = 'SelectOption'; |
| 12 |
//# sourceMappingURL=SelectOption.js.map |