@carbon/ibm-security
Version:
Carbon for Cloud & Cognitive IBM Security UI components
32 lines (31 loc) • 1.19 kB
JavaScript
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
var _excluded = ["className"];
/**
* @file Summary card select.
* @copyright IBM Security 2019
*/
import classnames from 'classnames';
import { string } from 'prop-types';
import React from 'react';
import Checkbox from '../../Checkbox';
import { appendComponentNamespace } from '../../../globals/namespace';
import { namespace as summaryCardNamespace } from '../SummaryCard';
export var namespace = appendComponentNamespace(summaryCardNamespace, 'select');
var SummaryCardSelect = function SummaryCardSelect(_ref) {
var className = _ref.className,
other = _objectWithoutProperties(_ref, _excluded);
return /*#__PURE__*/React.createElement("div", {
className: namespace
}, /*#__PURE__*/React.createElement(Checkbox, _extends({
className: classnames("".concat(namespace, "__checkbox"), className)
}, other)));
};
SummaryCardSelect.propTypes = {
/** Provide an optional class to be applied to the containing node */
className: string
};
SummaryCardSelect.defaultProps = {
className: null
};
export default SummaryCardSelect;