summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/popup/NoBalanceHelp.tsx
blob: 6e2bf1e635800c8a70195d40ce6de83a1e4085a4 (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
import { Translate } from "@gnu-taler/taler-util";
import { h, VNode } from "preact";
import { ButtonBoxWarning, WarningBox } from "../components/styled";

export function NoBalanceHelp({
  goToWalletManualWithdraw,
}: {
  goToWalletManualWithdraw: () => void;
}): VNode {
  return (
    <WarningBox>
      <p>
        <b>
          <Translate>You have no balance to show.</Translate>
        </b>
        <br />
        <Translate>
          To withdraw money you can start from your bank site or click the
          "withdraw" button to use a known exchange.
        </Translate>
      </p>
      <ButtonBoxWarning onClick={() => goToWalletManualWithdraw()}>
        <Translate>Withdraw</Translate>
      </ButtonBoxWarning>
    </WarningBox>
  );
}