react-toolbox/components/card/CardActions.js

22 lines
550 B
JavaScript
Raw Normal View History

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