feat: cargo project at root

This commit is contained in:
binarybaron 2024-08-08 00:45:26 +02:00
parent bde04fbd76
commit 8c4531cfd3
No known key found for this signature in database
GPG key ID: 99B75D3E1476A26E
493 changed files with 9665 additions and 1795 deletions

View file

@ -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)`}
</>
);
}