import bindAll from 'lodash.bindall'; import React from 'react'; import PaperCanvas from '../containers/paper-canvas.jsx'; import BrushMode from '../containers/brush-mode.jsx'; import EraserMode from '../containers/eraser-mode.jsx'; import styles from './paint-editor.css'; class PaintEditorComponent extends React.Component { constructor (props) { super(props); bindAll(this, [ 'setCanvas' ]); this.state = {}; } setCanvas (canvas) { this.setState({canvas: canvas}); } render () { return (
{/* First row */}
{/* Name field */}
{/* Todo use Label and BufferedInput from Gui */}
{/* Undo/Redo */}
{/* To be Front/back */}
{/* To be Group/Ungroup */}
{/* Second Row */}
{/* To be fill */}
{/* To be stroke */}
Mode tools
{/* Modes */} {this.state.canvas ? (
) : null} {/* Canvas */}
); } } export default PaintEditorComponent;