mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2025-09-04 00:20:39 +00:00
* restructuring * pin svelte kit version & parallel execution * update svelte kit * correct test result assets * add timeout * correct locale path * simplify crypto * fix for #58 * add verbosity flag * disable flaky test
12 lines
296 B
TypeScript
12 lines
296 B
TypeScript
import copyToClipboard from 'copy-to-clipboard'
|
|
import { t } from 'svelte-intl-precompile'
|
|
import { get } from 'svelte/store'
|
|
|
|
import { notify } from './toast'
|
|
|
|
export function copy(value: string) {
|
|
copyToClipboard(value)
|
|
const msg = get(t)('common.copied_to_clipboard')
|
|
notify.success(msg)
|
|
}
|