aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorsecondl1ght <[email protected]>2022-07-30 20:45:19 -0600
committersecondl1ght <[email protected]>2022-07-30 20:45:19 -0600
commit4552df3091e2a1c5f179eec1e2a4b73deccc72a9 (patch)
treef1b3e6447cc972e33378dbd0470e87a5925d26dd /src/lib
parenta172e63263654dbb8096859be16041d301afec77 (diff)
downloadcoinos-ui-4552df3091e2a1c5f179eec1e2a4b73deccc72a9.tar.gz
coinos-ui-4552df3091e2a1c5f179eec1e2a4b73deccc72a9.zip
add user public page
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/utils.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/utils.js b/src/lib/utils.js
index 22c88522..7831c519 100644
--- a/src/lib/utils.js
+++ b/src/lib/utils.js
@@ -17,3 +17,7 @@ export const post = (url, body) =>
body: JSON.stringify(body),
headers: { accept: 'application/json', 'content-type': 'application/json' }
}).then((r) => r.json());
+
+export const copy = (text) => {
+ navigator.clipboard.writeText(text);
+};