Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | import Tooltip from '@mui/material/Tooltip';
import { SVGProps, FC, ReactNode } from 'react';
export type CryptoType = 'bitcoin' | 'ethereum' | 'tether' | 'litecoin';
export interface CryptoPaymentIconProps extends SVGProps<SVGSVGElement> {
type: CryptoType;
}
const iconMap: Record<CryptoType, ReactNode> = {
bitcoin: (
<>
<g transform="scale(4.8, 5)" fill="none" fillRule="evenodd" id="Page-1" stroke="none">
<g id="bitcoin" transform="translate(-1.000000, 0.000000)">
<path
d="M149,1.01146687e-06 C141,1.76644588e-06 56.3007812,-1.60318373e-06 9,1.01146687e-06 C5,1.23257532e-06 1,4.00000101 1,8.00000101 L1,88.000001 C0.999999537,96.000001 5,100.000001 13,100.000001 C57.6232096,100.000001 141,100.000002 149,100.000001 C157,100.000001 161,96.000001 161,88.000001 L161,12.000001 C161,4.00000101 157,1.01146687e-06 149,1.01146687e-06 Z M149,1.01146687e-06"
fill="#F6F6F6"
id="Rectangle-1"
/>
<path
d="M40.0933442,52.6868923 C38.0118506,61.1265231 29.5558442,66.2627692 21.2060065,64.1581538 C12.8595779,62.0540308 7.77857143,53.5056 9.86103896,45.0664615 C11.9415584,36.6258462 20.3975649,31.4891077 28.7449675,33.5932308 C37.0943182,35.6973538 42.1748377,44.2467692 40.0933442,52.6868923 C40.0933442,52.6868923 42.1748377,44.2467692 40.0933442,52.6868923 Z M31.8457792,46.6315077 C32.1560065,44.5352615 30.5771104,43.4083692 28.4181818,42.6566154 L29.1185065,39.8169846 L27.4086039,39.3862154 L26.7267857,42.1510154 C26.2772727,42.0377846 25.8155844,41.9309538 25.3568182,41.8251077 L26.0435065,39.0420923 L24.3345779,38.6113231 L23.6337662,41.4499692 C23.2616883,41.3643077 22.8964286,41.2796308 22.5418831,41.1905231 L22.5438312,41.1816615 L20.1857143,40.5864615 L19.7308442,42.4326154 C19.7308442,42.4326154 20.999513,42.7265231 20.9727273,42.7447385 C21.6652597,42.9195077 21.7904221,43.3827692 21.7694805,43.7500308 L20.9717532,46.9849846 C21.0194805,46.9972923 21.0813312,47.0150154 21.149513,47.0425846 C21.0925325,47.0283077 21.0316558,47.0125538 20.9688312,46.9972923 L19.8506494,51.5289846 C19.7659091,51.7416615 19.5511364,52.0606769 19.0670455,51.9395692 C19.0840909,51.9646769 17.8241883,51.6259692 17.8241883,51.6259692 L16.9753247,53.6045538 L19.200487,54.1652923 C19.6144481,54.2701538 20.0201299,54.3799385 20.4194805,54.4833231 L19.7118506,57.3554462 L21.4198052,57.7862154 L22.1206169,54.9446154 C22.5871753,55.0726154 23.0400974,55.1907692 23.4832792,55.3020308 L22.7849026,58.1303385 L24.4948052,58.5611077 L25.2024351,55.6944 C28.1181818,56.2521846 30.3107143,56.0272 31.2336039,53.3613538 C31.9772727,51.2148923 31.1965909,49.9767385 29.6625,49.1693538 C30.7797078,48.9089231 31.6212662,48.1660308 31.8457792,46.6315077 C31.8457792,46.6315077 31.6212662,48.1660308 31.8457792,46.6315077 L31.8457792,46.6315077 Z M27.938961,52.1694769 C27.4105519,54.3159385 23.8353896,53.1555692 22.6762987,52.8646154 L23.6152597,49.0595692 C24.7743506,49.352 28.4912338,49.9309538 27.938961,52.1694769 C27.938961,52.1694769 28.4912338,49.9309538 27.938961,52.1694769 L27.938961,52.1694769 Z M28.4678571,46.6004923 C27.9857143,48.5529846 25.0100649,47.5609846 24.0448052,47.3177846 L24.8961039,43.8667077 C25.8613636,44.1099077 28.9699675,44.5638154 28.4678571,46.6004923 C28.4678571,46.6004923 28.9699675,44.5638154 28.4678571,46.6004923 L28.4678571,46.6004923 Z M28.4678571,46.6004923"
fill="#F7931A"
id="oval"
/>
<path
d="M54.0621753,42.6556308 C55.325974,42.6556308 56.4178571,42.8845538 57.3353896,43.3340308 C58.2573052,43.7879385 59.0180195,44.3993846 59.6282468,45.1683692 C60.2301948,45.9412923 60.6782468,46.8446769 60.9675325,47.88 C61.2548701,48.9182769 61.399026,50.0343385 61.399026,51.2291692 C61.399026,53.0644923 61.0663961,54.7984 60.3948052,56.4328615 C59.7232143,58.0697846 58.812013,59.4896 57.6529221,60.7006769 C56.4948052,61.9102769 55.1272727,62.8638769 53.5503247,63.5683692 C51.9758117,64.2733538 50.263961,64.6258462 48.425974,64.6258462 C48.1883117,64.6258462 47.7704545,64.6189538 47.1801948,64.6066462 C46.5899351,64.5943385 45.911526,64.5328 45.1517857,64.4289231 C44.3871753,64.3211077 43.5787338,64.1616 42.725,63.9479385 C41.8717532,63.7382154 41.0613636,63.4443077 40.2982143,63.0711385 L47.1222403,34.0860308 L53.2342532,33.1284923 L50.7909091,43.4142769 C51.313961,43.176 51.8409091,42.9913846 52.3668831,42.8569846 C52.8933442,42.7245538 53.4582792,42.6556308 54.0621753,42.6556308 C54.0621753,42.6556308 53.4582792,42.6556308 54.0621753,42.6556308 L54.0621753,42.6556308 L54.0621753,42.6556308 Z M48.9353896,59.7244308 C49.8558442,59.7244308 50.7232143,59.4955077 51.537987,59.0460308 C52.3551948,58.5960615 53.0603896,57.9885538 53.6511364,57.2318769 C54.2418831,56.4717538 54.7094156,55.6156308 55.0503247,54.6590769 C55.3912338,53.7025231 55.5636364,52.7046154 55.5636364,51.6663385 C55.5636364,50.3907692 55.3527597,49.3958154 54.9324675,48.6765538 C54.5121753,47.9602462 53.7344156,47.5998769 52.6050325,47.5998769 C52.2349026,47.5998769 51.7581169,47.6712615 51.1668831,47.7987692 C50.5737013,47.9341538 50.0428571,48.2152615 49.5670455,48.6381538 L46.9654221,59.5614769 C47.1222403,59.5895385 47.261039,59.6161231 47.3793831,59.6412308 C47.4952922,59.6683077 47.6233766,59.6875077 47.750974,59.7008 C47.8858766,59.7160615 48.0402597,59.7239385 48.2267857,59.7239385 C48.4133117,59.7239385 48.6465909,59.7244308 48.9353896,59.7244308 C48.9353896,59.7244308 48.6465909,59.7244308 48.9353896,59.7244308 L48.9353896,59.7244308 Z M66.738961,64.0685538 L60.9011364,64.0685538 L65.8311688,43.0977231 L71.7089286,43.0977231 L66.738961,64.0685538 L66.738961,64.0685538 Z M69.5797078,40.5426462 C68.7649351,40.5426462 68.0261364,40.2974769 67.3706169,39.8061538 C66.7097403,39.3177846 66.3824675,38.5660308 66.3824675,37.5528615 C66.3824675,36.9955692 66.4944805,36.4727385 66.7165584,35.9794462 C66.9420455,35.4871385 67.2366883,35.0632615 67.6058442,34.7028923 C67.974513,34.3454769 68.4016234,34.0599385 68.8866883,33.8448 C69.3746753,33.6331077 69.8938312,33.5272615 70.4470779,33.5272615 C71.2613636,33.5272615 71.9962662,33.7724308 72.6542208,34.2637538 C73.3097403,34.7575385 73.6394481,35.5092923 73.6394481,36.5170462 C73.6394481,37.0763077 73.5279221,37.6011077 73.3038961,38.0934154 C73.0813312,38.5857231 72.7866883,39.0096 72.4175325,39.3699692 C72.0517857,39.7278769 71.6207792,40.0124308 71.1366883,40.2256 C70.6482143,40.4407385 70.1310065,40.5426462 69.5797078,40.5426462 L69.5797078,40.5426462 Z M75.824026,37.8738462 L81.938474,36.9163077 L80.437013,43.0977231 L86.9853896,43.0977231 L85.8029221,47.9607385 L79.2939935,47.9607385 L77.5602273,55.2961231 C77.400487,55.9075692 77.3099026,56.4786462 77.2845779,57.0093538 C77.2558442,57.5425231 77.3225649,58.0003692 77.4803571,58.3858462 C77.6371753,58.7723077 77.9191558,59.0701538 78.3282468,59.2808615 C78.7353896,59.4950154 79.3183442,59.6028308 80.0829545,59.6028308 C80.7126623,59.6028308 81.3262987,59.5422769 81.9194805,59.4221538 C82.5092532,59.304 83.1068182,59.1395692 83.7116883,58.9244308 L84.1470779,63.4713846 C83.3581169,63.7638154 82.5038961,64.0153846 81.5834416,64.2270769 C80.661526,64.4417231 79.5701299,64.5451077 78.3087662,64.5451077 C76.4951299,64.5451077 75.0891234,64.2728615 74.0873377,63.7308308 C73.087013,63.1848615 72.3798701,62.4390154 71.9566558,61.4947692 C71.5392857,60.5539692 71.3527597,59.4694154 71.4048701,58.2475077 C71.4589286,57.0226462 71.6415584,55.7352615 71.9566558,54.3794462 L75.824026,37.8738462 Z M86.7277597,55.6968615 C86.7277597,53.8905846 87.0170455,52.1872 87.5951299,50.5926154 C88.1722403,48.9965538 89.0035714,47.6008615 90.0823052,46.4030769 C91.1571429,45.2112 92.4667208,44.2669538 94.0081169,43.5737846 C95.5422078,42.8845538 97.2599026,42.5369846 99.1529221,42.5369846 C100.337825,42.5369846 101.396104,42.6502154 102.327273,42.8771692 C103.262338,43.1060923 104.108279,43.4019692 104.873377,43.7731692 L102.860065,48.4008615 C102.334091,48.1852308 101.788149,47.9952 101.223701,47.8228923 C100.658766,47.6471385 99.9691558,47.5624615 99.1534091,47.5624615 C97.2048701,47.5624615 95.6644481,48.2413538 94.5180195,49.5947077 C93.375974,50.9490462 92.8008117,52.7720615 92.8008117,55.0588308 C92.8008117,56.4141538 93.0900974,57.5100308 93.6706169,58.3484308 C94.2482143,59.1868308 95.3152597,59.6038154 96.8644481,59.6038154 C97.6290584,59.6038154 98.3668831,59.5230769 99.073539,59.3655385 C99.7855519,59.2060308 100.414286,59.0051692 100.968019,58.7678769 L101.403896,63.5117538 C100.665584,63.8012308 99.8512987,64.0626462 98.9581169,64.2915692 C98.062987,64.5126154 96.9974026,64.6273231 95.7618506,64.6273231 C94.1308442,64.6273231 92.7501623,64.3860923 91.6207792,63.9110154 C90.4909091,63.4285538 89.5573052,62.7880615 88.8219156,61.9767385 C88.0826299,61.1634462 87.5517857,60.2137846 87.223539,59.1238154 C86.8952922,58.0348308 86.7277597,56.8907077 86.7277597,55.6968615 C86.7277597,55.6968615 86.7277597,56.8907077 86.7277597,55.6968615 L86.7277597,55.6968615 Z M111.660227,64.6263385 C110.266883,64.6263385 109.056656,64.4116923 108.030032,63.9868308 C107.006331,63.5619692 106.158442,62.9657846 105.487825,62.1928615 C104.816234,61.4238769 104.313636,60.5126154 103.969318,59.4625231 C103.625,58.4129231 103.459416,57.2505846 103.459416,55.9769846 C103.459416,54.3794462 103.713149,52.7824 104.225974,51.1897846 C104.736364,49.5937231 105.493669,48.1596308 106.495942,46.8850462 C107.490422,45.6084923 108.717208,44.5648 110.161688,43.7510154 C111.604708,42.9426462 113.264448,42.536 115.128734,42.536 C116.496753,42.536 117.700649,42.7511385 118.741396,43.176 C119.777273,43.5998769 120.630519,44.2009846 121.305032,44.9699692 C121.97224,45.7428923 122.479221,46.6502154 122.82013,47.7017846 C123.163474,48.7494154 123.332955,49.9147077 123.332955,51.1892923 C123.332955,52.7819077 123.08263,54.3789538 122.585877,55.9764923 C122.088636,57.5661538 121.350812,59.0036923 120.376786,60.2812308 C119.404708,61.5558154 118.189123,62.5990154 116.729058,63.4093538 C115.270942,64.2196923 113.580032,64.6263385 111.660227,64.6263385 L111.660227,64.6263385 Z M114.577922,47.5619692 C113.7125,47.5619692 112.947403,47.816 112.29237,48.3176615 C111.634903,48.8252308 111.08263,49.4632615 110.6375,50.2327385 C110.1875,51.0056615 109.853896,51.8484923 109.628409,52.7646769 C109.40487,53.6828308 109.295292,54.5507692 109.295292,55.3753846 C109.295292,56.7060923 109.50763,57.7424 109.925,58.4882462 C110.348214,59.2301538 111.108442,59.6033231 112.213474,59.6033231 C113.081818,59.6033231 113.843019,59.3512615 114.501948,58.8441846 C115.155519,58.3405538 115.708279,57.7020308 116.156818,56.9310769 C116.603896,56.1620923 116.940422,55.3168 117.165909,54.3991385 C117.386526,53.4839385 117.499026,52.6110769 117.499026,51.7879385 C117.499026,50.4606769 117.287662,49.4219077 116.866396,48.6770462 C116.445617,47.9351385 115.681981,47.5619692 114.577922,47.5619692 L114.577922,47.5619692 Z M128.696266,64.0685538 L122.853571,64.0685538 L127.783604,43.0977231 L133.664286,43.0977231 L128.696266,64.0685538 L128.696266,64.0685538 Z M131.53263,40.5426462 C130.718344,40.5426462 129.980032,40.2974769 129.325487,39.8061538 C128.668019,39.3177846 128.337825,38.5660308 128.337825,37.5528615 C128.337825,36.9955692 128.451299,36.4727385 128.673864,35.9794462 C128.896429,35.4871385 129.193019,35.0632615 129.562175,34.7028923 C129.928896,34.3454769 130.359903,34.0599385 130.843994,33.8448 C131.329058,33.6331077 131.848214,33.5272615 132.399513,33.5272615 C133.215747,33.5272615 133.953084,33.7724308 134.609578,34.2637538 C135.266558,34.7575385 135.598214,35.5092923 135.598214,36.5170462 C135.598214,37.0763077 135.480357,37.6011077 135.25974,38.0934154 C135.039123,38.5857231 134.742532,39.0096 134.374838,39.3699692 C134.004708,39.7278769 133.579058,40.0124308 133.093994,40.2256 C132.605032,40.4407385 132.086851,40.5426462 131.53263,40.5426462 L131.53263,40.5426462 Z M135.869156,44.0532923 C136.312338,43.9223385 136.807143,43.7648 137.345292,43.5934769 C137.88539,43.4221538 138.488799,43.2626462 139.162825,43.1188923 C139.829545,42.9707077 140.581981,42.8505846 141.409416,42.7575385 C142.236851,42.6625231 143.179708,42.6162462 144.227273,42.6162462 C147.306169,42.6162462 149.428571,43.5225846 150.600325,45.3298462 C151.771104,47.1371077 151.973701,49.6104615 151.213961,52.7454769 L148.528571,64.0685538 L142.652273,64.0685538 L145.25487,52.9837538 C145.413636,52.2915692 145.538312,51.6225231 145.630357,50.9687385 C145.723377,50.3208615 145.718019,49.7497846 145.609416,49.2555077 C145.505682,48.7671385 145.261201,48.3673846 144.881818,48.0577231 C144.496591,47.7529846 143.91461,47.5998769 143.125162,47.5998769 C142.363961,47.5998769 141.58961,47.6825846 140.799188,47.8420923 L136.972727,64.0680615 L131.093994,64.0680615 L135.869156,44.0532923 L135.869156,44.0532923 Z M135.869156,44.0532923"
fill="#4D4D4D"
id="b"
/>
</g>
</g>
</>
),
ethereum: (
<>
<rect width="780" height="500" rx="60" fill="#627EEA" />
<rect x="140" y="80" width="500" height="340" rx="170" fill="white" />
<g>
<polygon points="390,170 490,250 390,330 290,250" fill="#627EEA" />
<polygon points="390,330 490,270 390,410 290,270" fill="#8FA8E6" />
<polygon points="390,210 450,250 390,290 330,250" fill="#222" opacity="0.7" />
</g>
</>
),
tether: (
<>
<rect width="780" height="500" rx="60" fill="#26A17B" />
<rect x="140" y="80" width="500" height="340" rx="170" fill="white" />
<text
x="390"
y="270"
textAnchor="middle"
fontFamily="Arial, Helvetica, sans-serif"
fontSize="300"
fontWeight="bold"
fill="#222"
dominantBaseline="middle"
>
₮
</text>
</>
),
litecoin: (
<>
<rect width="780" height="500" rx="60" fill="#345D9D" />
<rect x="140" y="80" width="500" height="340" rx="170" fill="white" />
<text
x="390"
y="270"
textAnchor="middle"
fontFamily="Arial, Helvetica, sans-serif"
fontSize="300"
fontWeight="bold"
fill="#222"
dominantBaseline="middle"
>
Ł
</text>
</>
),
};
/**q
* Component for showing the little credit card likeicon thigs, but for crypto currency
*
* @example
* ```typescript
* <CryptoPaymentIcon type="bitcoin" width={20} />
* <CryptoPaymentIcon type="ethereum" width={20} />
* <CryptoPaymentIcon type="tether" width={20} />
* <CryptoPaymentIcon type="litecoin" width={20} />
* ```
*/
const CryptoPaymentIcon: FC<CryptoPaymentIconProps> = ({ type, ...props }) => (
<Tooltip title={type} placement="top" arrow>
<svg
viewBox="0 0 780 500"
fill="none"
xmlns="http://www.w3.org/2000/svg"
role="img"
data-testid={`crypto-icon-${type}`}
aria-label={type}
{...props}
>
{iconMap[type]}
</svg>
</Tooltip>
);
export default CryptoPaymentIcon;
|