MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / handleRemove

Function handleRemove

src/components/entity-components.tsx:301–312  ·  view source on GitHub ↗
(e: React.MouseEvent)

Source from the content-addressed store, hash-verified

299 className,
300}: EntityItemProps) => {
301 const handleRemove = async (e: React.MouseEvent) => {
302 e.preventDefault();
303 e.stopPropagation();
304
305 if (isRemoving) {
306 return;
307 }
308
309 if (onRemove) {
310 await onRemove();
311 }
312 }
313
314 return (
315 <Link href={href} prefetch>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected