@carbon/ibm-security
Version:
Carbon for Cloud & Cognitive IBM Security UI components
41 lines (39 loc) • 1.41 kB
JavaScript
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
var _excluded = ["children"],
_excluded2 = ["children"];
/**
* @file Action bar module.
* @copyright IBM Security 2020
*/
import { node } from 'prop-types';
import React from 'react';
import LayoutModule from '../LayoutModule';
var namespace = 'action-bar';
/**
* Action bars allow users to take multiple actions on the subsequent section.
*/
var ActionBarModule = function ActionBarModule(_ref) {
var children = _ref.children,
other = _objectWithoutProperties(_ref, _excluded);
return /*#__PURE__*/React.createElement(LayoutModule, _extends({
namespace: namespace
}, other), children);
};
ActionBarModule.propTypes = {
/** Provide the `ActionBarModuleItems`, and optionally supplementary details, for the `ActionBarModule` */
children: node.isRequired
};
var ActionBarModuleItems = function ActionBarModuleItems(_ref2) {
var children = _ref2.children,
other = _objectWithoutProperties(_ref2, _excluded2);
return /*#__PURE__*/React.createElement(LayoutModule, _extends({
namespace: "".concat(namespace, "__items")
}, other), children);
};
ActionBarModuleItems.propTypes = {
/** Provide the contents of the `ActionBarModuleItems` */
children: node.isRequired
};
export default ActionBarModule;
export { ActionBarModuleItems };