Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/code100x/daily-code
/ handleCopyClick
Function
handleCopyClick
apps/web/components/CodeBlock.tsx:20–26 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
18
}, []);
19
20
const handleCopyClick = () => {
21
navigator.clipboard.writeText(code).then(() => {
22
toast({
23
description:
"Copied to clipboard"
,
24
});
25
});
26
};
27
28
return (
29
<div className=
"w-full relative"
>
Callers
nothing calls this directly
Calls
1
toast
Function · 0.85
Tested by
no test coverage detected