react-toolbox/components/card/CardActions.js

23 lines
571 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
import { themr } from 'react-css-themr';
import classnames from 'classnames';
import { CARD } from '../identifiers';
const CardActions = ({ children, className, theme, ...other }) => (
<div className={classnames(theme.cardActions, className)} {...other}>
{children}
</div>
);
CardActions.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
theme: PropTypes.shape({
cardActions: PropTypes.string,
}),
};
export default themr(CARD)(CardActions);
export { CardActions };