2022-02-18 20:54:15 +01:00
|
|
|
import { h, VNode } from "preact";
|
|
|
|
import { ButtonBoxWarning, WarningBox } from "../components/styled";
|
2022-03-14 19:20:32 +01:00
|
|
|
import { useTranslationContext } from "../context/translation";
|
2022-02-18 20:54:15 +01:00
|
|
|
|
|
|
|
export function NoBalanceHelp({
|
|
|
|
goToWalletManualWithdraw,
|
|
|
|
}: {
|
|
|
|
goToWalletManualWithdraw: () => void;
|
|
|
|
}): VNode {
|
2022-03-14 19:20:32 +01:00
|
|
|
const { i18n } = useTranslationContext();
|
2022-02-18 20:54:15 +01:00
|
|
|
return (
|
|
|
|
<WarningBox>
|
|
|
|
<p>
|
|
|
|
<b>
|
2022-03-15 15:39:42 +01:00
|
|
|
<i18n.Translate>You have no balance.</i18n.Translate>
|
2022-02-18 20:54:15 +01:00
|
|
|
</b>
|
2022-03-15 15:39:42 +01:00
|
|
|
<i18n.Translate>Withdraw some funds into your wallet.</i18n.Translate>
|
2022-02-18 20:54:15 +01:00
|
|
|
</p>
|
|
|
|
<ButtonBoxWarning onClick={() => goToWalletManualWithdraw()}>
|
2022-02-23 19:44:14 +01:00
|
|
|
<i18n.Translate>Withdraw</i18n.Translate>
|
2022-02-18 20:54:15 +01:00
|
|
|
</ButtonBoxWarning>
|
|
|
|
</WarningBox>
|
|
|
|
);
|
|
|
|
}
|