@talend/react-bootstrap
Version:
Bootstrap 3 components built with React
31 lines • 894 B
JavaScript
import PropTypes from 'prop-types';
import React from 'react';
import cn from 'classnames';
import { prefix, bsClass, splitBsProps } from './utils/bootstrapUtils';
import { jsx as _jsx } from "react/jsx-runtime";
const contextTypes = {
$bs_panel: PropTypes.shape({
bsClass: PropTypes.string
})
};
class PanelFooter extends React.Component {
render() {
let {
children,
className
} = this.props;
let {
bsClass: _bsClass
} = this.context.$bs_panel || {};
const [bsProps, elementProps] = splitBsProps(this.props);
bsProps.bsClass = _bsClass || bsProps.bsClass;
return /*#__PURE__*/_jsx("div", {
...elementProps,
className: cn(className, prefix(bsProps, 'footer')),
children: children
});
}
}
PanelFooter.contextTypes = contextTypes;
export default bsClass('panel', PanelFooter);
//# sourceMappingURL=PanelFooter.js.map