Files
cartlog-admin/node_modules/reactstrap/src/CardFooter.js
2026-01-01 15:25:19 +05:30

28 lines
718 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { mapToCssModules, tagPropType } from './utils';
const propTypes = {
/** Add custom class */
className: PropTypes.string,
/** Change underlying component's CSS base class name */
cssModule: PropTypes.object,
/** Set a custom element for this component */
tag: tagPropType,
};
function CardFooter(props) {
const { className, cssModule, tag: Tag = 'div', ...attributes } = props;
const classes = mapToCssModules(
classNames(className, 'card-footer'),
cssModule,
);
return <Tag {...attributes} className={classes} />;
}
CardFooter.propTypes = propTypes;
export default CardFooter;