MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / useRooPortal

Function useRooPortal

webview-ui/src/components/ui/hooks/useRooPortal.ts:4–10  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

2import { useMount } from "react-use"
3
4export const useRooPortal = (id: string) => {
5 const [container, setContainer] = useState<HTMLElement>()
6
7 useMount(() => setContainer(document.getElementById(id) ?? undefined))
8
9 return container
10}

Callers 7

WorktreeSelectorFunction · 0.90
AutoApproveDropdownFunction · 0.90
ModeSelectorFunction · 0.90
ApiConfigSelectorFunction · 0.90
CodeIndexPopoverFunction · 0.90
CheckpointMenuFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected