react-toolbox/components/card/CardActions.js

23 lines
571 B
JavaScript
Raw Permalink Normal View History

import React from 'react';
import PropTypes from 'prop-types';
import { themr } from 'react-css-themr';
import classnames from 'classnames';
2017-01-26 20:05:32 +03:00
import { CARD } from '../identifiers';
const CardActions = ({ children, className, theme, ...other }) => (
<div className={classnames(theme.cardActions, className)} {...other}>
{children}
</div>
);
CardActions.propTypes = {
2017-01-26 20:05:32 +03:00
children: PropTypes.node,
className: PropTypes.string,
theme: PropTypes.shape({
2017-01-26 20:05:32 +03:00
cardActions: PropTypes.string,
}),
};
2016-05-28 20:15:12 +03:00
export default themr(CARD)(CardActions);
export { CardActions };