mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-07-31 10:38:51 -04:00
feat: cargo project at root
This commit is contained in:
parent
bde04fbd76
commit
8c4531cfd3
493 changed files with 9665 additions and 1795 deletions
|
@ -0,0 +1,17 @@
|
|||
import humanizeDuration from 'humanize-duration';
|
||||
|
||||
const AVG_BLOCK_TIME_MS = 10 * 60 * 1000;
|
||||
|
||||
export default function HumanizedBitcoinBlockDuration({
|
||||
blocks,
|
||||
}: {
|
||||
blocks: number;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
{`${humanizeDuration(blocks * AVG_BLOCK_TIME_MS, {
|
||||
conjunction: ' and ',
|
||||
})} (${blocks} blocks)`}
|
||||
</>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue