MCPcopy Create free account
hub / github.com/astercloud/aster / toggleEventType

Function toggleEventType

studio/src/pages/Events.tsx:125–129  ·  view source on GitHub ↗
(type: string)

Source from the content-addressed store, hash-verified

123 };
124
125 const toggleEventType = (type: string) => {
126 setSelectedTypes((prev) =>
127 prev.includes(type) ? prev.filter((t) => t !== type) : [...prev, type]
128 );
129 };
130
131 return (
132 <div className="flex flex-col h-full">

Callers 1

EventsFunction · 0.85

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected