wallet-core/packages/taler-wallet-webextension/src/popup/NoBalanceHelp.tsx

25 lines
733 B
TypeScript
Raw Normal View History

import { h, VNode } from "preact";
2022-03-29 04:41:07 +02:00
import { ButtonBoxWarning, WarningBox } from "../components/styled/index.js";
import { useTranslationContext } from "../context/translation.js";
export function NoBalanceHelp({
goToWalletManualWithdraw,
}: {
goToWalletManualWithdraw: () => void;
}): VNode {
const { i18n } = useTranslationContext();
return (
<WarningBox>
<p>
<b>
<i18n.Translate>You have no balance.</i18n.Translate>
2022-03-29 04:41:07 +02:00
</b>{" "}
<i18n.Translate>Withdraw some funds into your wallet.</i18n.Translate>
</p>
<ButtonBoxWarning onClick={() => goToWalletManualWithdraw()}>
<i18n.Translate>Withdraw</i18n.Translate>
</ButtonBoxWarning>
</WarningBox>
);
}