13 lines
213 B
React
13 lines
213 B
React
|
// @flow
|
||
|
import React from 'react';
|
||
|
|
||
|
type Props = {
|
||
|
children: any,
|
||
|
};
|
||
|
|
||
|
export default function ErrorText(props: Props) {
|
||
|
const { children } = props;
|
||
|
|
||
|
return <span className="error-text">{children}</span>;
|
||
|
}
|