- {!BigNumber(summary?.fee || 0).isZero() && (
-
-
- Fee
-
- {summary?.fee} {walletState.sync.unit.ticker}
-
-
+
+
+
+
+ Summary
+
+
+ Advanced
+
+
+ JSON
+
+
+
+
+
+ {!BigNumber(summary?.fee || 0).isZero() && (
+
+ )}
+ {created
+ .filter((created) => created.address !== 'Change')
+ .sort((a, b) => a.sort - b.sort)
+ .map((created, i) => (
+
+ ))}
+
+
+
+
+
+
+
+ {spent
+ .sort((a, b) => a.sort - b.sort)
+ .map((spent, i) => (
+
+ ))}
- )}
- {created
- .sort((a, b) => a.sort - b.sort)
- .map((created, i) => (
-
-
-
- {created.badge}
-
- {created.label}
-
-
-
-
- {created.address}
+
+
+
+ {!BigNumber(summary?.fee || 0).isZero() && (
+
+
+ Fee
+
+ {summary?.fee} {walletState.sync.unit.ticker}
+
-
- ))}
+ )}
+ {created
+ .sort((a, b) => a.sort - b.sort)
+ .map((created, i) => (
+
+ ))}
+
+
-
-
+
+
+
+
+ Warning
+
+ This is the raw JSON spend bundle for this transaction. If
+ you sign it, the transaction can be submitted to the
+ mempool externally.
+
+
+
+
+
+
+ {json}
+
+
+
+
+
-
);
}
+
+interface ItemProps {
+ badge: string;
+ label: string;
+ icon?: typeof BadgeMinus;
+ address?: string;
+}
+
+function Item({ badge, label, icon: Icon, address }: ItemProps) {
+ return (
+
+
+
+ {badge}
+
+ {label}
+
+ {Icon && (
+
+ )}
+
+ );
+}
diff --git a/src/components/ui/tabs.tsx b/src/components/ui/tabs.tsx
new file mode 100644
index 00000000..2d3c9d68
--- /dev/null
+++ b/src/components/ui/tabs.tsx
@@ -0,0 +1,53 @@
+import * as React from 'react';
+import * as TabsPrimitive from '@radix-ui/react-tabs';
+
+import { cn } from '@/lib/utils';
+
+const Tabs = TabsPrimitive.Root;
+
+const TabsList = React.forwardRef<
+ React.ElementRef
,
+ React.ComponentPropsWithoutRef
+>(({ className, ...props }, ref) => (
+
+));
+TabsList.displayName = TabsPrimitive.List.displayName;
+
+const TabsTrigger = React.forwardRef<
+ React.ElementRef,
+ React.ComponentPropsWithoutRef
+>(({ className, ...props }, ref) => (
+
+));
+TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
+
+const TabsContent = React.forwardRef<
+ React.ElementRef,
+ React.ComponentPropsWithoutRef
+>(({ className, ...props }, ref) => (
+
+));
+TabsContent.displayName = TabsPrimitive.Content.displayName;
+
+export { Tabs, TabsList, TabsTrigger, TabsContent };