on abd024f help sign in
bridge/src/components/NeedFundsNotice.js
25 lines 719 B history raw
1import React from 'react';
2import { fromWei } from 'web3-utils';
4import Highlighted from './Highlighted';
5import CopiableAddress from './CopiableAddress';
6import WarningBox from './WarningBox';
7import Blinky from './Blinky';
9export default function NeedFundsNotice({
10 address,
11 minBalance,
12 balance,
13 ...rest
14}) {
15 return (
16 <WarningBox {...rest}>
17 <Highlighted warning>
18 Your ownership address <CopiableAddress>{address}</CopiableAddress>{' '}
19 needs at least {fromWei(minBalance)} ETH and currently has{' '}
20 {fromWei(balance)} ETH. The transaction will automatically resume once
21 enough ETH is available. Waiting... <Blinky />
22 </Highlighted>
23 </WarningBox>
24 );