2015-11-18 00:24:22 +03:00
|
|
|
import React, { PropTypes, Component } from 'react';
|
2015-11-21 22:17:18 +03:00
|
|
|
import ClassNames from 'classnames';
|
2015-11-18 00:24:22 +03:00
|
|
|
import style from './style';
|
|
|
|
|
|
|
|
class CardActions extends Component {
|
|
|
|
static propTypes = {
|
|
|
|
children: PropTypes.any,
|
2015-11-21 22:17:18 +03:00
|
|
|
className: PropTypes.string
|
2015-11-18 00:24:22 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
render () {
|
2015-11-23 22:34:07 +03:00
|
|
|
const { children, className, ...other } = this.props;
|
2015-11-21 22:17:18 +03:00
|
|
|
const classes = ClassNames(style.cardActions, className);
|
2015-11-18 00:24:22 +03:00
|
|
|
|
|
|
|
return (
|
2015-11-23 22:34:07 +03:00
|
|
|
<div className={classes} {...other}>
|
2015-11-18 00:24:22 +03:00
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default CardActions;
|