diff options
| author | Jurjen de Vries <[email protected]> | 2025-09-11 00:48:15 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-09-11 00:48:15 +0200 |
| commit | 0c69c9848c6b98c92609d209103efc60003c9723 (patch) | |
| tree | 445121def885f13d0f80c06864ad2ff4d5ef95a1 /src/components/Amount.svelte | |
| parent | 2abcf6e435fca5d86960f3ba4228002bfb0a19e6 (diff) | |
| parent | 9277b2921e09ee9dd5f39cf4af30a2330f4d95d1 (diff) | |
| download | coinos-ui-0c69c9848c6b98c92609d209103efc60003c9723.tar.gz coinos-ui-0c69c9848c6b98c92609d209103efc60003c9723.zip | |
Merge branch 'coinos:master' into master
Diffstat (limited to 'src/components/Amount.svelte')
| -rw-r--r-- | src/components/Amount.svelte | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/components/Amount.svelte b/src/components/Amount.svelte index f13949c6..2df2f702 100644 --- a/src/components/Amount.svelte +++ b/src/components/Amount.svelte @@ -1,7 +1,17 @@ <script> import { copy, s, f, toFiat } from "$lib/utils"; import { fiat } from "$lib/store"; - const { align, amount, locale, tip, rate, currency } = $props(); + const { + align, + amount, + locale, + tip, + rate, + currency, + locked = false, + } = $props(); + + const icon = $derived(locked ? "ph:lock-fill" : "ph:lightning-fill"); </script> {#if typeof amount !== "undefined"} @@ -11,14 +21,14 @@ class:justify-center={align !== "left"} > <div class="flex items-center" onclick={() => copy(amount)}> - <iconify-icon noobserver icon="ph:lightning-fill" class="text-yellow-300" + <iconify-icon noobserver {icon} class="text-yellow-300" ></iconify-icon>{s(amount, locale)} </div> {#if tip} <div class="flex items-center text-lg ml-2"> <div>+</div> - <iconify-icon noobserver icon="ph:lightning-fill" class="text-yellow-300" + <iconify-icon noobserver {icon} class="text-yellow-300" ></iconify-icon> <div>{s(tip, locale)}</div> </div> |
