mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-13 01:01:29 -05:00
19 lines
440 B
React
19 lines
440 B
React
|
const classNames = require('classnames');
|
||
|
const PropTypes = require('prop-types');
|
||
|
const React = require('react');
|
||
|
|
||
|
require('./validation-message.scss');
|
||
|
|
||
|
const ValidationMessage = props => (
|
||
|
<div className={classNames(['validation-message', props.className])}>
|
||
|
{props.message}
|
||
|
</div>
|
||
|
);
|
||
|
|
||
|
ValidationMessage.propTypes = {
|
||
|
className: PropTypes.string,
|
||
|
message: PropTypes.string
|
||
|
};
|
||
|
|
||
|
module.exports = ValidationMessage;
|