blob: a487bb28190eec3f8d0c9c44c02ac38c28876fb7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
import { Classes } from 'jss';
import React, { Component } from 'react';
import injectSheet from 'react-jss';
import styles from './styles';
interface IProps {
classes: Classes;
message: string;
}
class ErrorComponent extends Component<IProps> {
render() {
const {
classes,
message,
} = this.props;
return (
<p
className={classes.message}
>
{message}
</p>
);
}
}
export const Error = injectSheet(styles)(ErrorComponent);
|