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';
|
|
|
|
|
2015-11-23 07:19:26 +03:00
|
|
|
/**
|
|
|
|
* This component is used as a container for supplemental
|
|
|
|
* card actions. Supplemental actions within the card are
|
|
|
|
* explicitly called out using icons, text, and UI controls,
|
|
|
|
* typically placed at the bottom of the card.
|
|
|
|
*/
|
2015-11-18 00:24:22 +03:00
|
|
|
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 () {
|
|
|
|
const {
|
|
|
|
children,
|
|
|
|
className,
|
|
|
|
...otherProps
|
|
|
|
} = 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 (
|
|
|
|
<div className={classes} {...otherProps}>
|
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default CardActions;
|