mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-01-10 06:32:07 -05:00
5c723e5f92
* Create messages.js for all tooltips as many are shared between the bitmap and vector editors: * Brush Translation * Eraser Translation * Fill Translation * Line Translation * Oval Translation * Rect Translation * Reshape Translation * RoundedRect Translation * Select Translation * Text Translation
22 lines
593 B
JavaScript
22 lines
593 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import messages from '../../lib/messages.js';
|
|
import ToolSelectComponent from '../tool-select-base/tool-select-base.jsx';
|
|
|
|
import textIcon from './text.svg';
|
|
|
|
const TextModeComponent = props => (
|
|
<ToolSelectComponent
|
|
imgDescriptor={messages.text}
|
|
imgSrc={textIcon}
|
|
isSelected={props.isSelected}
|
|
onMouseDown={props.onMouseDown}
|
|
/>
|
|
);
|
|
|
|
TextModeComponent.propTypes = {
|
|
isSelected: PropTypes.bool.isRequired,
|
|
onMouseDown: PropTypes.func.isRequired
|
|
};
|
|
|
|
export default TextModeComponent;
|