UNPKG

@carbon/ibm-security

Version:

Carbon for Cloud & Cognitive IBM Security UI components

31 lines (30 loc) 1.12 kB
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; var _excluded = ["className", "children"]; /** * @file Summary card footer. * @copyright IBM Security 2019 */ import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { getComponentNamespace } from '../../../globals/namespace/index'; var namespace = getComponentNamespace('summary-card__footer'); var SummaryCardFooter = function SummaryCardFooter(_ref) { var className = _ref.className, children = _ref.children, other = _objectWithoutProperties(_ref, _excluded); return /*#__PURE__*/React.createElement("div", _extends({ className: classnames(namespace, className) }, other), children); }; SummaryCardFooter.propTypes = { /** @type {node} The children are rendered in the main content area of the card. */ children: PropTypes.node.isRequired, /** @type {string} The class. */ className: PropTypes.string }; SummaryCardFooter.defaultProps = { className: null }; export default SummaryCardFooter;