blob: 6ff7b10190934b01d8d9f5af978cdb314e165d6d (
plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
|
import { h, Fragment, VNode } from "preact";
import { Divider } from "../mui/Divider";
import { Button } from "./styled/index.js";
import { Typography } from "../mui/Typography";
import { Avatar } from "../mui/Avatar";
import { Grid } from "../mui/Grid";
import { Paper } from "../mui/Paper";
function SignalWifiOffIcon(): VNode {
return <Fragment />;
}
function Banner({}: {}) {
return (
<Fragment>
<Paper elevation={0} /*className={classes.paper}*/>
<Grid container wrap="nowrap" spacing={16} alignItems="center">
<Grid item>
<Avatar /*className={classes.avatar}*/>
<SignalWifiOffIcon />
</Avatar>
</Grid>
<Grid item>
<Typography>
You have lost connection to the internet. This app is offline.
</Typography>
</Grid>
</Grid>
<Grid container justify="flex-end" spacing={8}>
<Grid item>
<Button color="primary">Turn on wifi</Button>
</Grid>
</Grid>
</Paper>
<Divider />
{/* <CssBaseline /> */}
</Fragment>
);
}
export default Banner;
|