2016-05-11 17:19:37 +00:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
var playUrl = require('../../../images/play.svg');
|
2016-05-11 19:31:17 +00:00
|
|
|
var logoUrl = require('../../../images/p5js-logo.svg');
|
2016-05-11 17:19:37 +00:00
|
|
|
|
|
|
|
class Toolbar extends React.Component {
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<div className="toolbar">
|
2016-05-11 19:31:17 +00:00
|
|
|
<img className="toolbar__logo" src={logoUrl}/>
|
2016-05-11 20:13:17 +00:00
|
|
|
<div className="toolbar__play-button" onClick={this.props.toggleSketch}>
|
2016-05-11 19:31:17 +00:00
|
|
|
<img src={playUrl}/>
|
|
|
|
</div>
|
2016-05-11 17:19:37 +00:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Toolbar;
|