mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-29 11:06:10 +00:00
web/CopyIcon: added regular copy icon
This commit is contained in:
parent
a589bf7e54
commit
b8fc3aeb4c
|
@ -1,13 +1,19 @@
|
|||
<script lang="ts">
|
||||
import IconLink from "@tabler/icons-svelte/IconLink.svelte";
|
||||
import IconCopy from "@tabler/icons-svelte/IconCopy.svelte";
|
||||
import IconCheck from "@tabler/icons-svelte/IconCheck.svelte";
|
||||
|
||||
export let check = false;
|
||||
export let regularIcon = false;
|
||||
</script>
|
||||
|
||||
<div id="copy-animation" class:check>
|
||||
<div class="icon-copy">
|
||||
<IconLink />
|
||||
{#if regularIcon}
|
||||
<IconCopy />
|
||||
{:else}
|
||||
<IconLink />
|
||||
{/if}
|
||||
</div>
|
||||
<div class="icon-check">
|
||||
<IconCheck />
|
||||
|
|
Loading…
Reference in a new issue