2016-05-20 22:05:03 +03:00
|
|
|
import React, { PropTypes } from 'react';
|
|
|
|
import { themr } from 'react-css-themr';
|
|
|
|
import classnames from 'classnames';
|
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 = {
|
|
|
|
children: PropTypes.any,
|
|
|
|
className: PropTypes.string,
|
|
|
|
theme: React.PropTypes.shape({
|
|
|
|
cardActions: React.PropTypes.string.isRequired
|
|
|
|
})
|
|
|
|
};
|
2015-11-18 00:24:22 +03:00
|
|
|
|
2016-05-20 22:05:03 +03:00
|
|
|
export default themr('ToolboxCard')(CardActions);
|