Files
Przemyslaw Kukulski 5e6ce919b6 feat: share a user template with a private link (#6611)
* feat: share a user template with a private link

* Review feedback
2026-11-10 12:50:34 +01:00

7 lines
230 B
JavaScript

/**
* Copies the given text to the browser clipboard.
* @param {string} text
* @returns {Promise<void>} Rejects when the text couldn't be copied.
*/
export const copyToClipboard = (text) => navigator.clipboard.writeText(text)