From e2996ef8d1d3628731e340481d01a5ef07e2abd1 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 4 Sep 2024 18:59:30 -0700 Subject: wip --- src/components/Items.svelte | 209 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 209 insertions(+) create mode 100644 src/components/Items.svelte (limited to 'src/components/Items.svelte') diff --git a/src/components/Items.svelte b/src/components/Items.svelte new file mode 100644 index 00000000..f449215c --- /dev/null +++ b/src/components/Items.svelte @@ -0,0 +1,209 @@ + + + + +{#if deleting} + +{/if} + +{#if items.length} +

Select items

+{/if} +
+ {#each items as i (i.id)} + + + + + + + +
+ {/if} + +
+
+
+
{i.name}
+
+
+ {f(i.price, currency)} +
+
+ {sat(btc(i.price, rate))} +
+
+
+
+ {#if i.quantity} + + {/if} +
+ {#if i.quantity}{i.quantity}{:else}—{/if} +
+ {#if i.quantity} + + {/if} +
+
+
+ + {/each} + -- cgit v1.2.3