p5.js-web-editor/shared/components/Preferences/Preferences.jsx
2016-06-17 14:31:33 -04:00

23 lines
579 B
JavaScript

import React from 'react';
var Isvg = require('react-inlinesvg');
var preferences = require('../../../images/preferences.svg');
var classNames = require('classnames');
class Preferences extends React.Component {
render() {
let preferencesContainerClass = classNames({
"preferences": true,
"preferences--selected": this.props.isPreferencesShowing
});
return (
<div className={preferencesContainerClass}>
<button className="preferences__exit-button" onClick={this.props.closePreferences}>
X
</button>
</div>
);
}
}
export default Preferences;