import React, { PropTypes } from 'react'; const InlineSVG = require('react-inlinesvg'); const playUrl = require('../../../images/play.svg'); const logoUrl = require('../../../images/p5js-logo.svg'); const stopUrl = require('../../../images/stop.svg'); const preferencesUrl = require('../../../images/preferences.svg'); import classNames from 'classnames'; function Toolbar(props) { let playButtonClass = classNames({ 'toolbar__play-button': true, 'toolbar__play-button--selected': props.isPlaying }); let stopButtonClass = classNames({ 'toolbar__stop-button': true, 'toolbar__stop-button--selected': !props.isPlaying }); let preferencesButtonClass = classNames({ 'toolbar__preferences-button': true, 'toolbar__preferences-button--selected': props.preferencesIsVisible }); return (
by {props.owner.username}
); } })()}