MCPcopy Create free account
hub / github.com/Snapchat/dagger-browser / CopiedComponent

Function CopiedComponent

browser/src/components/NodeLink.tsx:37–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 const displayNameHelper = new DisplayNameHelper()
36 const [copiedFullName , copyHandler ] = React.useState(false)
37 const CopiedComponent = () => {
38 useEffect(() => {
39 // component will hide after 5 seconds
40 const timer = setTimeout(() => copyHandler(false), 5000);
41 return () => clearTimeout(timer);
42 }, []);
43 return (
44 <div className = "copiedTextLink">
45 <span>Copied Component!</span>
46 <br/>
47 </div>
48 );
49 }
50 return (<div className="tooltip_link">
51 <div className="binding">
52 <div>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected