mirror of
https://github.com/wassname/talk.git
synced 2026-06-28 15:07:24 +08:00
18 lines
431 B
JavaScript
18 lines
431 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import styles from './ErrorMessage.css';
|
|
import { Icon } from 'plugin-api/beta/client/components/ui';
|
|
|
|
const ErrorMessage = ({ children }) => (
|
|
<div className={styles.errorMsg}>
|
|
<Icon className={styles.warningIcon} name="warning" />
|
|
<span>{children}</span>
|
|
</div>
|
|
);
|
|
|
|
ErrorMessage.propTypes = {
|
|
children: PropTypes.node,
|
|
};
|
|
|
|
export default ErrorMessage;
|