mirror of
https://github.com/maputnik/editor.git
synced 2025-12-27 00:20:00 +00:00
21 lines
344 B
JavaScript
21 lines
344 B
JavaScript
import React from 'react'
|
|
import PropTypes from 'prop-types'
|
|
import './SmallError.scss';
|
|
|
|
|
|
class SmallError extends React.Component {
|
|
static propTypes = {
|
|
children: PropTypes.node,
|
|
}
|
|
|
|
render () {
|
|
return (
|
|
<div className="SmallError">
|
|
Error: {this.props.children}
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default SmallError
|