init
This commit is contained in:
commit
d761a10bf7
102 changed files with 4761 additions and 0 deletions
15
lib/components/bio/profile/SocialText.svelte
Normal file
15
lib/components/bio/profile/SocialText.svelte
Normal file
|
@ -0,0 +1,15 @@
|
|||
<script lang="ts">
|
||||
import Button from '$lib/components/dashboard/elements/Button.svelte';
|
||||
import { toast } from '@zerodevx/svelte-toast';
|
||||
|
||||
export let social: BioSiteSocialText;
|
||||
</script>
|
||||
|
||||
<Button
|
||||
title={social.value}
|
||||
onClick={async () => {
|
||||
await navigator.clipboard.writeText(social.value);
|
||||
toast.push('Copied to clipboard.');
|
||||
}}>
|
||||
{social.title}
|
||||
</Button>
|
Loading…
Add table
Add a link
Reference in a new issue