1 | import _extends from "@babel/runtime/helpers/esm/extends";
|
2 | import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
3 | import React from 'react';
|
4 | import PropTypes from 'prop-types';
|
5 | import classNames from 'classnames';
|
6 | import { mapToCssModules, tagPropType } from './utils';
|
7 | var propTypes = {
|
8 | tag: tagPropType,
|
9 | className: PropTypes.string,
|
10 | cssModule: PropTypes.object
|
11 | };
|
12 | var defaultProps = {
|
13 | tag: 'div'
|
14 | };
|
15 |
|
16 | var CardFooter = function CardFooter(props) {
|
17 | var className = props.className,
|
18 | cssModule = props.cssModule,
|
19 | Tag = props.tag,
|
20 | attributes = _objectWithoutPropertiesLoose(props, ["className", "cssModule", "tag"]);
|
21 |
|
22 | var classes = mapToCssModules(classNames(className, 'card-footer'), cssModule);
|
23 | return React.createElement(Tag, _extends({}, attributes, {
|
24 | className: classes
|
25 | }));
|
26 | };
|
27 |
|
28 | CardFooter.propTypes = propTypes;
|
29 | CardFooter.defaultProps = defaultProps;
|
30 | export default CardFooter; |
\ | No newline at end of file |