p5.js-web-editor/shared/components/Toolbar/Toolbar.jsx

19 lines
437 B
React
Raw Normal View History

2016-05-11 17:19:37 +00:00
import React from 'react';
var playUrl = require('../../../images/play.svg');
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">
<img className="toolbar__logo" src={logoUrl}/>
2016-05-11 20:13:17 +00:00
<div className="toolbar__play-button" onClick={this.props.toggleSketch}>
<img src={playUrl}/>
</div>
2016-05-11 17:19:37 +00:00
</div>
);
}
}
export default Toolbar;