Skip to content

Commit

Permalink
Merge branch 'main' into feat/smallish-logo
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker authored Oct 21, 2024
2 parents ebd2288 + b57290b commit 0abed19
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/frontend/src/lib/components/receive/ReceiveCopy.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<script lang="ts">
import IconCopy from '$lib/components/icons/IconCopy.svelte';
import ButtonIcon from '$lib/components/ui/ButtonIcon.svelte';
import { copyToClipboard } from '$lib/utils/clipboard.utils';
export let address: string;
export let copyAriaLabel: string;
</script>

<ButtonIcon
ariaLabel={copyAriaLabel}
on:click={async () => await copyToClipboard({ value: address, text: copyAriaLabel })}
>
<IconCopy size="24" slot="icon" />
</ButtonIcon>

0 comments on commit 0abed19

Please sign in to comment.