MCPcopy Create free account
hub / github.com/evolify/dumpfun / copy

Function copy

common/utils/client.ts:4–11  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

2import { toast } from "sonner"
3
4export async function copy(text: string) {
5 try {
6 await navigator.clipboard.writeText(text)
7 toast.success("Copied to clipboard")
8 } catch (err) {
9 console.error(err)
10 }
11}
12
13export function getQuery<T>(key: string, defaultValue?: T) {
14 if (typeof window === "undefined") {

Callers 2

copyAddrFunction · 0.90
copyAddrFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected