MCPcopy Create free account
hub / github.com/cursor/community-plugins / handleClick

Function handleClick

apps/cursor/src/components/plugins/star-button.tsx:58–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 });
57
58 const handleClick = () => {
59 if (!isAuthenticated) {
60 setIsSignInModalOpen(true);
61 return;
62 }
63
64 prevRef.current = { starred, count };
65 setStarred(!starred);
66 setCount(starred ? count - 1 : count + 1);
67 execute({ pluginId, slug });
68 };
69
70 if (!loaded) {
71 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected