2022-04-05 17:16:09 +02:00
|
|
|
import { css } from "@linaria/core";
|
|
|
|
import { Fragment, h, VNode } from "preact";
|
|
|
|
import { Alert } from "../mui/Alert.js";
|
|
|
|
import { Button } from "../mui/Button.js";
|
|
|
|
import { Paper } from "../mui/Paper.js";
|
|
|
|
import { Typography } from "../mui/Typography.js";
|
2022-02-18 20:54:15 +01:00
|
|
|
|
|
|
|
export function NoBalanceHelp({
|
|
|
|
goToWalletManualWithdraw,
|
|
|
|
}: {
|
2022-06-01 20:47:47 +02:00
|
|
|
goToWalletManualWithdraw: () => Promise<void>;
|
2022-02-18 20:54:15 +01:00
|
|
|
}): VNode {
|
|
|
|
return (
|
2022-04-05 17:16:09 +02:00
|
|
|
<Paper
|
|
|
|
class={css`
|
|
|
|
margin: 1em;
|
|
|
|
`}
|
|
|
|
>
|
|
|
|
<Alert title="You have no balance." severity="warning">
|
|
|
|
<Typography>Withdraw some funds into your wallet.</Typography>
|
|
|
|
<Button
|
|
|
|
fullWidth
|
|
|
|
color="warning"
|
|
|
|
variant="outlined"
|
|
|
|
onClick={goToWalletManualWithdraw}
|
|
|
|
>
|
|
|
|
<Typography>Withdraw</Typography>
|
|
|
|
</Button>
|
|
|
|
</Alert>
|
|
|
|
</Paper>
|
2022-02-18 20:54:15 +01:00
|
|
|
);
|
|
|
|
}
|