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

19 lines
372 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
};
module.exports = PaintEditorComponent;