Finish space create form

This commit is contained in:
Jon Staab
2024-08-08 16:32:46 -07:00
parent 6c2e5d6e07
commit 028ff71e8f
18 changed files with 258 additions and 17 deletions
+15
View File
@@ -0,0 +1,15 @@
export const copyToClipboard = (text: string) => {
const {activeElement} = document
const input = document.createElement("textarea")
input.innerHTML = text
document.body.appendChild(input)
input.select()
const result = document.execCommand("copy")
document.body.removeChild(input)
;(activeElement as HTMLElement).focus()
return result
}