2017-07-17 18:39:50 -04:00
|
|
|
import PropTypes from 'prop-types';
|
2017-07-13 14:03:48 -04:00
|
|
|
import React from 'react';
|
2017-07-17 18:39:50 -04:00
|
|
|
import PaperCanvas from '../containers/paper-canvas.jsx';
|
2017-07-13 14:03:48 -04:00
|
|
|
|
2017-07-17 18:39:50 -04:00
|
|
|
const PaintEditorComponent = props => (
|
|
|
|
<PaperCanvas
|
|
|
|
tool={props.tool}
|
|
|
|
/>
|
|
|
|
);
|
2017-07-13 14:03:48 -04:00
|
|
|
|
2017-07-17 18:39:50 -04:00
|
|
|
PaintEditorComponent.propTypes = {
|
|
|
|
tool: PropTypes.shape({
|
|
|
|
name: PropTypes.string.isRequired
|
|
|
|
})
|
2017-07-13 14:03:48 -04:00
|
|
|
};
|
2017-07-17 18:39:50 -04:00
|
|
|
|
2017-07-26 20:39:12 -04:00
|
|
|
export default PaintEditorComponent;
|