scratch-paint/src/components/paint-editor.jsx

18 lines
369 B
React
Raw Normal View History

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