UNPKG

ggez-banking-sdk

Version:

A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.

14 lines (13 loc) 484 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.handleCopy = void 0; const handleCopy = async (text) => { try { text && await navigator.clipboard.writeText(text); return { text: text, status: "success", message: "Text copied to clipboard successfully." }; } catch (error) { return { text: text, status: "failed", message: `Error copying text to clipboard: ${error}` }; } }; exports.handleCopy = handleCopy;