MCPcopy
hub / github.com/anomalyco/opencode / toggle

Function toggle

packages/console/app/src/component/dropdown.tsx:39–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 })
38
39 const toggle = () => {
40 const newValue = !store.isOpen
41 setStore("isOpen", newValue)
42 props.onOpenChange?.(newValue)
43 }
44
45 return (
46 <div data-component="dropdown" class={props.class} ref={dropdownRef}>

Callers

nothing calls this directly

Calls 1

setStoreFunction · 0.85

Tested by

no test coverage detected