-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIoValueTab.tsx
More file actions
738 lines (689 loc) · 32.4 KB
/
Copy pathIoValueTab.tsx
File metadata and controls
738 lines (689 loc) · 32.4 KB
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
// src/features/inspector/tabs/IoValueTab.tsx
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
import { Badge } from '@/components/ui/badge';
import { DomainTx } from '@/domain/tx';
import { formatAda, formatAssetQuantity } from '@/lib/utils/ada';
import { Copy, ArrowRight, Coins, Shield, ArrowDownRight, ArrowUpRight } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { toast } from 'sonner';
import { BlockExplorerLink } from '@/components/block-explorer-link';
import { resolveAddressLabel } from '@/lib/labels';
import { KnownLabelHighlight } from '@/components/known-label-highlight';
import { useTokenRegistry } from '@/hooks/use-token-registry';
import { useAppStore } from '@/lib/store';
import { AssetDisplay } from '@/components/asset-display';
interface IoValueTabProps {
tx: DomainTx;
}
function parseCoinValue(value: unknown): bigint {
if (!value || value === '0') return 0n;
try { return BigInt(String(value)); } catch { return 0n; }
}
function truncateAddress(address: string, startLength: number = 15, endLength: number = 4): string {
if (address.length <= startLength + endLength) {
return address;
}
return `${address.slice(0, startLength)}...${address.slice(-endLength)}`;
}
export function IoValueTab({ tx }: IoValueTabProps) {
const { getMetadata } = useTokenRegistry(tx);
const network = useAppStore((s) => s.network);
const copyToClipboard = async (text: string, label: string) => {
try {
await navigator.clipboard.writeText(text);
toast.success(`${label} copied to clipboard`);
} catch (error) {
toast.error('Failed to copy to clipboard');
}
};
return (
<div className="h-full overflow-auto p-4 space-y-4">
{/* Inputs */}
<Card>
<CardHeader>
<CardTitle className="flex items-center gap-2">
<ArrowRight className="h-5 w-5 rotate-180" />
Inputs ({tx.inputs.filter(input => !input.isCollateral).length})
</CardTitle>
</CardHeader>
<CardContent>
{tx.inputs.filter(input => !input.isCollateral).length === 0 ? (
<p className="text-muted-foreground text-sm">No regular inputs</p>
) : (
<div className="space-y-3">
{tx.inputs
.filter(input => !input.isCollateral)
.map((input, index) => {
const resolvedLabel = resolveAddressLabel(
{ address: input.resolved?.address, addressCreds: input.resolved?.addressCreds },
network,
);
return (
<div key={index} className="border rounded-lg p-3 space-y-2">
<div className="flex items-center justify-between">
<span className="text-sm font-medium">Input #{index}</span>
</div>
<div className="space-y-1">
<div className="flex items-center justify-between">
<span className="text-xs text-muted-foreground">Transaction ID</span>
<div className="flex items-center gap-2">
<code className="text-xs bg-muted px-2 py-1 rounded">
{input.txId.slice(0, 16)}...
</code>
<Button
variant="ghost"
size="sm"
onClick={() => copyToClipboard(input.txId, 'Transaction ID')}
>
<Copy className="h-3 w-3" />
</Button>
<BlockExplorerLink
type="transaction"
params={{ txHash: input.txId }}
/>
</div>
</div>
<div className="flex items-center justify-between">
<span className="text-xs text-muted-foreground">Index</span>
<span className="text-xs">{input.index}</span>
</div>
{input.resolved?.address && (
<div className="space-y-2">
<div className="flex items-center justify-between">
<span className="text-xs text-muted-foreground">Address</span>
<div className="flex items-center gap-2">
<code className="text-xs bg-muted px-2 py-1 rounded">
{truncateAddress(input.resolved.address)}
</code>
<Button
variant="ghost"
size="sm"
onClick={() => copyToClipboard(input.resolved!.address!, 'Address')}
>
<Copy className="h-3 w-3" />
</Button>
<BlockExplorerLink
type="address"
params={{ address: input.resolved.address }}
/>
</div>
</div>
{resolvedLabel && (
<KnownLabelHighlight category="address" label={resolvedLabel} />
)}
</div>
)}
{input.resolved?.value && (
<div className="space-y-1">
<div className="flex items-center justify-between">
<span className="text-xs text-muted-foreground">ADA</span>
<span className="text-xs font-mono">{formatAda(input.resolved.value.ada)}</span>
</div>
{input.resolved.value.assets.length > 0 && (
<div className="space-y-1">
<span className="text-xs text-muted-foreground">Assets</span>
<div className="space-y-1">
{input.resolved.value.assets.map((asset, assetIndex) => (
<AssetDisplay
key={assetIndex}
asset={asset}
metadata={getMetadata(asset.policyId, asset.assetName)}
/>
))}
</div>
</div>
)}
</div>
)}
</div>
</div>
);
})}
</div>
)}
</CardContent>
</Card>
{/* Collateral Inputs */}
{tx.inputs.some(input => input.isCollateral) && (
<Card>
<CardHeader>
<CardTitle className="flex items-center gap-2">
<Shield className="h-5 w-5" />
Collateral Inputs ({tx.inputs.filter(input => input.isCollateral).length})
</CardTitle>
</CardHeader>
<CardContent>
<div className="space-y-3">
{tx.inputs
.filter(input => input.isCollateral)
.map((input, index) => {
const collateralLabel = resolveAddressLabel(
{ address: input.resolved?.address, addressCreds: input.resolved?.addressCreds },
network,
);
return (
<div key={index} className="border rounded-lg p-3 space-y-2 bg-orange-50 dark:bg-orange-950/20">
<div className="flex items-center justify-between">
<span className="text-sm font-medium">Collateral Input #{index}</span>
<Badge variant="secondary">Collateral</Badge>
</div>
<div className="space-y-1">
<div className="flex items-center justify-between">
<span className="text-xs text-muted-foreground">Transaction ID</span>
<div className="flex items-center gap-2">
<code className="text-xs bg-muted px-2 py-1 rounded">
{input.txId.slice(0, 16)}...
</code>
<Button
variant="ghost"
size="sm"
onClick={() => copyToClipboard(input.txId, 'Transaction ID')}
>
<Copy className="h-3 w-3" />
</Button>
<BlockExplorerLink
type="transaction"
params={{ txHash: input.txId }}
/>
</div>
</div>
<div className="flex items-center justify-between">
<span className="text-xs text-muted-foreground">Index</span>
<span className="text-xs">{input.index}</span>
</div>
{input.resolved?.address && (
<div className="space-y-2">
<div className="flex items-center justify-between">
<span className="text-xs text-muted-foreground">Address</span>
<div className="flex items-center gap-2">
<code className="text-xs bg-muted px-2 py-1 rounded">
{truncateAddress(input.resolved.address)}
</code>
<Button
variant="ghost"
size="sm"
onClick={() => copyToClipboard(input.resolved!.address!, 'Address')}
>
<Copy className="h-3 w-3" />
</Button>
<BlockExplorerLink
type="address"
params={{ address: input.resolved.address }}
/>
</div>
</div>
{collateralLabel && (
<KnownLabelHighlight category="address" label={collateralLabel} />
)}
</div>
)}
{input.resolved?.value && (
<div className="space-y-1">
<div className="flex items-center justify-between">
<span className="text-xs text-muted-foreground">ADA</span>
<span className="text-xs font-mono">{formatAda(input.resolved.value.ada)}</span>
</div>
{input.resolved.value.assets.length > 0 && (
<div className="space-y-1">
<span className="text-xs text-muted-foreground">Assets</span>
<div className="space-y-1">
{input.resolved.value.assets.map((asset, assetIndex) => (
<AssetDisplay
key={assetIndex}
asset={asset}
metadata={getMetadata(asset.policyId, asset.assetName)}
/>
))}
</div>
</div>
)}
</div>
)}
</div>
</div>
);
})}
</div>
</CardContent>
</Card>
)}
{/* Outputs */}
<Card>
<CardHeader>
<CardTitle className="flex items-center gap-2">
<ArrowRight className="h-5 w-5" />
Outputs ({tx.outputs.length})
</CardTitle>
</CardHeader>
<CardContent>
{tx.outputs.length === 0 ? (
<p className="text-muted-foreground text-sm">No outputs</p>
) : (
<div className="space-y-3">
{tx.outputs.map((output, index) => {
const outputLabel = resolveAddressLabel(
{ address: output.address, addressCreds: output.addressCreds },
network,
);
return (
<div key={index} className="border rounded-lg p-3 space-y-2">
<div className="flex items-center justify-between">
<span className="text-sm font-medium">Output #{index}</span>
<div className="flex gap-1">
{output.datum && <Badge variant="outline">Datum</Badge>}
{output.scriptRef && <Badge variant="outline">Script</Badge>}
</div>
</div>
<div className="space-y-1">
<div className="space-y-2">
<div className="flex items-center justify-between">
<span className="text-xs text-muted-foreground">Address</span>
<div className="flex items-center gap-2">
<code className="text-xs bg-muted px-2 py-1 rounded">
{truncateAddress(output.address)}
</code>
<Button
variant="ghost"
size="sm"
onClick={() => copyToClipboard(output.address, 'Address')}
>
<Copy className="h-3 w-3" />
</Button>
<BlockExplorerLink
type="address"
params={{ address: output.address }}
/>
</div>
</div>
{outputLabel && (
<KnownLabelHighlight category="address" label={outputLabel} />
)}
</div>
<div className="flex items-center justify-between">
<span className="text-xs text-muted-foreground">ADA</span>
<span className="text-xs font-mono">{formatAda(output.ada)}</span>
</div>
{output.assets.length > 0 && (
<div className="space-y-1">
<span className="text-xs text-muted-foreground">Assets</span>
<div className="space-y-1">
{output.assets.map((asset, assetIndex) => (
<AssetDisplay
key={assetIndex}
asset={asset}
metadata={getMetadata(asset.policyId, asset.assetName)}
/>
))}
</div>
</div>
)}
{output.datum && (
<div className="space-y-1">
<span className="text-xs text-muted-foreground">Datum</span>
<div className="text-xs">
{output.datum.inline ? 'Inline' : 'Hash'}
{output.datum.hash && (
<code className="ml-2 bg-muted px-1 py-0.5 rounded">
{output.datum.hash.slice(0, 16)}...
</code>
)}
</div>
</div>
)}
</div>
</div>
);
})}
</div>
)}
</CardContent>
</Card>
{/* Mint */}
{tx.mint && tx.mint.length > 0 && (
<Card>
<CardHeader>
<CardTitle className="flex items-center gap-2">
<Coins className="h-5 w-5" />
Mint ({tx.mint.length})
</CardTitle>
</CardHeader>
<CardContent>
<div className="space-y-3">
{tx.mint.map((mint, index) => {
const assetId = `${mint.policyId}${mint.assetName}`;
const assetNameDisplay = mint.assetName || '(empty - policy native token)';
const mintMeta = getMetadata(mint.policyId, mint.assetName);
const mintDecimals = mintMeta?.decimals ?? 0;
return (
<div key={index} className="border rounded-lg p-3 space-y-2">
<div className="flex items-center justify-between">
<div className="flex items-center gap-2">
<span className="text-sm font-medium">Minting Action {index + 1}</span>
{mintMeta && (
<span className="flex items-center gap-1 text-xs text-muted-foreground">
{mintMeta.logo && (
<img
src={`data:image/png;base64,${mintMeta.logo}`}
alt={mintMeta.name}
className="h-4 w-4 rounded-sm"
/>
)}
{mintMeta.ticker ?? mintMeta.name}
</span>
)}
</div>
<span className="text-sm font-mono">
{mint.quantity > BigInt(0) ? '+' : ''}{formatAssetQuantity(mint.quantity, mintDecimals)}
</span>
</div>
<div className="space-y-2">
<div className="space-y-1">
<span className="text-xs text-muted-foreground">Asset Name:</span>
<div className="flex items-center gap-2">
<code className="text-xs bg-muted px-2 py-1 rounded font-mono break-all flex-1">
{assetNameDisplay}
</code>
{mint.assetName && (
<Button
variant="ghost"
size="sm"
className="h-6 px-2 flex-shrink-0"
onClick={() => copyToClipboard(mint.assetName, 'Asset Name')}
>
<Copy className="h-3 w-3" />
</Button>
)}
</div>
</div>
<div className="space-y-1">
<span className="text-xs text-muted-foreground">Policy ID:</span>
<div className="flex items-center gap-2">
<code className="text-xs bg-muted px-2 py-1 rounded font-mono break-all flex-1">
{mint.policyId}
</code>
<Button
variant="ghost"
size="sm"
className="h-6 px-2 flex-shrink-0"
onClick={() => copyToClipboard(mint.policyId, 'Policy ID')}
>
<Copy className="h-3 w-3" />
</Button>
<BlockExplorerLink
type="policy"
params={{ policyId: mint.policyId }}
/>
</div>
</div>
<div className="space-y-1 pt-1 border-t">
<span className="text-xs text-muted-foreground">Asset ID:</span>
<div className="flex items-center gap-2">
<code className="text-xs bg-muted px-2 py-1 rounded font-mono break-all flex-1">
{assetId}
</code>
<Button
variant="ghost"
size="sm"
className="h-6 px-2 flex-shrink-0"
onClick={() => copyToClipboard(assetId, 'Asset ID')}
>
<Copy className="h-3 w-3" />
</Button>
<BlockExplorerLink
type="asset"
params={{ assetId, policyId: mint.policyId, assetName: mint.assetName }}
/>
</div>
</div>
</div>
</div>
);
})}
</div>
</CardContent>
</Card>
)}
{/* Reference Inputs */}
{tx.referenceInputs && tx.referenceInputs.length > 0 && (
<Card>
<CardHeader>
<CardTitle className="flex items-center gap-2">
<Copy className="h-5 w-5" />
Reference Inputs ({tx.referenceInputs.length})
</CardTitle>
</CardHeader>
<CardContent>
<div className="space-y-2">
<p className="text-sm text-muted-foreground mb-3">
Reference inputs provide data to Plutus scripts without consuming the UTXO. They can be read by scripts but don't affect the transaction's value transfer.
</p>
{tx.referenceInputs.map((refInput, index) => (
<div key={index} className="border rounded-lg p-3 space-y-2">
<div className="flex items-center justify-between">
<span className="text-sm font-medium">Reference Input #{index + 1}</span>
</div>
<div className="space-y-1">
<div className="flex items-center justify-between">
<span className="text-xs text-muted-foreground">Transaction ID</span>
<div className="flex items-center gap-2">
<code className="text-xs bg-muted px-2 py-1 rounded">
{refInput.txId.slice(0, 16)}...
</code>
<Button
variant="ghost"
size="sm"
onClick={() => copyToClipboard(refInput.txId, 'Reference input TX ID')}
>
<Copy className="h-3 w-3" />
</Button>
<BlockExplorerLink
type="transaction"
params={{ txHash: refInput.txId }}
/>
</div>
</div>
<div className="flex items-center justify-between">
<span className="text-xs text-muted-foreground">Index</span>
<span className="text-xs font-mono">{refInput.index}</span>
</div>
</div>
</div>
))}
</div>
</CardContent>
</Card>
)}
{/* Collateral Return */}
{tx.collateralReturn && (
<Card>
<CardHeader>
<CardTitle className="flex items-center gap-2">
<Shield className="h-5 w-5" />
Collateral Return
</CardTitle>
</CardHeader>
<CardContent>
<div className="space-y-3">
<p className="text-sm text-muted-foreground">
The collateral return output specifies where any unused collateral should be returned after script execution.
</p>
{(() => {
const collateralReturnLabel = resolveAddressLabel(
{ address: tx.collateralReturn.address, addressCreds: tx.collateralReturn.addressCreds },
network,
);
return (
<div className="border rounded-lg p-3 space-y-2">
<div className="flex items-center justify-between">
<span className="text-sm font-medium">Address</span>
<div className="flex items-center gap-2">
<code className="text-xs bg-muted px-2 py-1 rounded">
{truncateAddress(tx.collateralReturn.address)}
</code>
<Button
variant="ghost"
size="sm"
onClick={() => copyToClipboard(tx.collateralReturn!.address, 'Collateral return address')}
>
<Copy className="h-3 w-3" />
</Button>
<BlockExplorerLink
type="address"
params={{ address: tx.collateralReturn.address }}
/>
</div>
</div>
{collateralReturnLabel && (
<KnownLabelHighlight category="address" label={collateralReturnLabel} />
)}
<div className="flex items-center justify-between">
<span className="text-sm font-medium">ADA</span>
<span className="text-sm font-mono">
{formatAda(tx.collateralReturn.ada)}
</span>
</div>
{tx.collateralReturn.assets.length > 0 && (
<div className="space-y-1">
<span className="text-sm font-medium">Assets</span>
<div className="space-y-1">
{tx.collateralReturn.assets.map((asset, index) => (
<AssetDisplay
key={index}
asset={asset}
metadata={getMetadata(asset.policyId, asset.assetName)}
/>
))}
</div>
</div>
)}
</div>
);
})()}
</div>
</CardContent>
</Card>
)}
{/* Implicit Outputs */}
{(() => {
const implicitOutputItems: Array<{ label: string; amount: bigint }> = [];
implicitOutputItems.push({ label: 'Fee', amount: tx.feeLovelace });
if (tx.treasuryDonation && tx.treasuryDonation > 0n) {
implicitOutputItems.push({ label: 'Treasury Donation', amount: tx.treasuryDonation });
}
if (tx.certs) {
for (const cert of tx.certs) {
if (cert.type === 'StakeRegistration') {
const deposit = parseCoinValue(cert.details.deposit);
if (deposit > 0n) {
implicitOutputItems.push({ label: 'Stake Registration Deposit', amount: deposit });
}
}
if (cert.type === 'DRepRegistration') {
const deposit = parseCoinValue(cert.details.deposit);
if (deposit > 0n) {
implicitOutputItems.push({ label: 'DRep Registration Deposit', amount: deposit });
}
}
if (cert.type === 'Proposal') {
const deposit = parseCoinValue(cert.details.deposit);
if (deposit > 0n) {
implicitOutputItems.push({ label: 'Proposal Deposit', amount: deposit });
}
}
}
}
if (tx.governance?.proposals) {
for (const proposal of tx.governance.proposals) {
const deposit = parseCoinValue(proposal.details.deposit);
if (deposit > 0n) {
implicitOutputItems.push({ label: `Governance Action Deposit (${proposal.type})`, amount: deposit });
}
}
}
const implicitOutputTotal = implicitOutputItems.reduce((sum, item) => sum + item.amount, 0n);
return (
<Card>
<CardHeader>
<CardTitle className="flex items-center gap-2">
<ArrowDownRight className="h-5 w-5" />
Implicit Outputs ({implicitOutputItems.length})
</CardTitle>
</CardHeader>
<CardContent>
<div className="space-y-2">
{implicitOutputItems.map((item, index) => (
<div key={index} className="flex items-center justify-between">
<span className="text-sm text-muted-foreground">{item.label}</span>
<span className="text-sm font-mono">{formatAda(item.amount)} ada</span>
</div>
))}
{implicitOutputItems.length > 1 && (
<div className="flex items-center justify-between border-t pt-2">
<span className="text-sm font-medium">Total</span>
<span className="text-sm font-mono font-medium">{formatAda(implicitOutputTotal)} ada</span>
</div>
)}
</div>
</CardContent>
</Card>
);
})()}
{/* Implicit Inputs */}
{(() => {
const implicitInputItems: Array<{ label: string; amount: bigint }> = [];
if (tx.withdrawals) {
for (const w of tx.withdrawals) {
implicitInputItems.push({
label: `Withdrawal (${truncateAddress(w.stakeAddr)})`,
amount: w.amount,
});
}
}
if (tx.certs) {
for (const cert of tx.certs) {
if (cert.type === 'StakeDeregistration') {
const refund = parseCoinValue(cert.details.refund);
if (refund > 0n) {
implicitInputItems.push({ label: 'Stake Deregistration Refund', amount: refund });
}
}
if (cert.type === 'DRepDeregistration') {
const refund = parseCoinValue(cert.details.refund);
if (refund > 0n) {
implicitInputItems.push({ label: 'DRep Deregistration Refund', amount: refund });
}
}
}
}
if (implicitInputItems.length === 0) return null;
const implicitInputTotal = implicitInputItems.reduce((sum, item) => sum + item.amount, 0n);
return (
<Card>
<CardHeader>
<CardTitle className="flex items-center gap-2">
<ArrowUpRight className="h-5 w-5" />
Implicit Inputs ({implicitInputItems.length})
</CardTitle>
</CardHeader>
<CardContent>
<div className="space-y-2">
{implicitInputItems.map((item, index) => (
<div key={index} className="flex items-center justify-between">
<span className="text-sm text-muted-foreground">{item.label}</span>
<span className="text-sm font-mono">{formatAda(item.amount)} ada</span>
</div>
))}
{implicitInputItems.length > 1 && (
<div className="flex items-center justify-between border-t pt-2">
<span className="text-sm font-medium">Total</span>
<span className="text-sm font-mono font-medium">{formatAda(implicitInputTotal)} ada</span>
</div>
)}
</div>
</CardContent>
</Card>
);
})()}
</div>
);
}