| 1 |
import { __rest } from "tslib"; |
| 2 |
import { jsx as _jsx } from "react/jsx-runtime"; |
| 3 |
import { Component } from 'react'; |
| 4 |
import styles from '@patternfly/react-styles/css/components/MenuToggle/menu-toggle.mjs'; |
| 5 |
import { css } from '@patternfly/react-styles'; |
| 6 |
class MenuToggleAction extends Component { |
| 7 |
render() { |
| 8 |
const _a = this.props, { id, className, onClick, isDisabled, children } = _a, props = __rest(_a, ["id", "className", "onClick", "isDisabled", "children"]); |
| 9 |
return (_jsx("button", Object.assign({ id: id, className: css(styles.menuToggleButton, className), onClick: onClick, type: "button", disabled: isDisabled }, props, { children: children }))); |
| 10 |
} |
| 11 |
} |
| 12 |
MenuToggleAction.displayName = 'MenuToggleAction'; |
| 13 |
MenuToggleAction.defaultProps = { |
| 14 |
className: '', |
| 15 |
isDisabled: false, |
| 16 |
onClick: () => { } |
| 17 |
}; |
| 18 |
export { MenuToggleAction }; |
| 19 |
//# sourceMappingURL=MenuToggleAction.js.map |