web/CopyIcon: added regular copy icon

This commit is contained in:
wukko 2024-08-25 16:34:08 +06:00
parent a589bf7e54
commit b8fc3aeb4c
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -1,13 +1,19 @@
<script lang="ts"> <script lang="ts">
import IconLink from "@tabler/icons-svelte/IconLink.svelte"; import IconLink from "@tabler/icons-svelte/IconLink.svelte";
import IconCopy from "@tabler/icons-svelte/IconCopy.svelte";
import IconCheck from "@tabler/icons-svelte/IconCheck.svelte"; import IconCheck from "@tabler/icons-svelte/IconCheck.svelte";
export let check = false; export let check = false;
export let regularIcon = false;
</script> </script>
<div id="copy-animation" class:check> <div id="copy-animation" class:check>
<div class="icon-copy"> <div class="icon-copy">
<IconLink /> {#if regularIcon}
<IconCopy />
{:else}
<IconLink />
{/if}
</div> </div>
<div class="icon-check"> <div class="icon-check">
<IconCheck /> <IconCheck />