2017-02-28 16:13:27 +13:00
|
|
|
|
|
|
|
|
import React, { PropTypes } from 'react'
|
|
|
|
|
import FontAwesome from 'react-fontawesome'
|
|
|
|
|
|
|
|
|
|
export default class ContextMenuTrigger extends React.Component{
|
|
|
|
|
|
2017-10-10 13:05:28 +13:00
|
|
|
constructor(props){
|
2017-02-28 16:13:27 +13:00
|
|
|
super(props);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render(){
|
|
|
|
|
var className = 'context-menu-trigger'
|
|
|
|
|
if (this.props.className){
|
|
|
|
|
className += ' '+this.props.className
|
|
|
|
|
}
|
|
|
|
|
return (
|
2017-06-19 07:38:23 +12:00
|
|
|
<span className={className} onClick={e => this.props.onTrigger(e)}>
|
2017-06-20 08:40:34 +12:00
|
|
|
<span className="dot"></span>
|
|
|
|
|
<span className="dot"></span>
|
|
|
|
|
<span className="dot"></span>
|
2017-06-19 07:38:23 +12:00
|
|
|
</span>
|
2017-02-28 16:13:27 +13:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|