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

24 lines
625 B
React
Raw Normal View History

2016-06-17 17:37:29 +00:00
import React from 'react';
var Isvg = require('react-inlinesvg');
var exitUrl = require('../../../images/exit.svg');
2016-06-17 17:37:29 +00:00
var classNames = require('classnames');
class Preferences extends React.Component {
render() {
2016-06-17 18:31:33 +00:00
let preferencesContainerClass = classNames({
2016-06-17 17:37:29 +00:00
"preferences": true,
"preferences--selected": this.props.isPreferencesShowing
});
return (
<div className={preferencesContainerClass} tabindex="0">
2016-06-17 18:31:33 +00:00
<button className="preferences__exit-button" onClick={this.props.closePreferences}>
<Isvg src={exitUrl} alt="Exit Preferences" />
2016-06-17 18:31:33 +00:00
</button>
2016-06-17 17:37:29 +00:00
</div>
);
}
}
export default Preferences;