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