mirror of
https://github.com/zoriya/flood.git
synced 2025-12-20 06:05:15 +00:00
17 lines
391 B
JavaScript
17 lines
391 B
JavaScript
import React from 'react';
|
|
|
|
import Stop from '../icons/Stop';
|
|
|
|
export default class Action extends React.Component {
|
|
render() {
|
|
let classString = 'action action--' + this.props.slug;
|
|
|
|
return (
|
|
<div className={classString} onClick={this.props.clickHandler}>
|
|
{this.props.icon}
|
|
<span className="action__label">{this.props.label}</span>
|
|
</div>
|
|
);
|
|
}
|
|
}
|