blob: ff3bc31c605554ea53041b621702326340c7f583 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import { Classes } from 'jss';
import { 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, { injectTheme: true })(ErrorComponent);
|