@sqlrooms/layout / useGetPanel
Function: useGetPanel()
useGetPanel(
node):RoomPanelInfo|null
React hook to get panel info from a layout node using direct panel identity.
Reads the panel property from panel/dock nodes or falls back to the node's id, looks it up in the panels registry, and resolves function-form definitions.
Parameters
| Parameter | Type | Description |
|---|---|---|
node | LayoutNode | The layout node to resolve panel info for |
Returns
RoomPanelInfo | null
Panel info object, or null if no match in registry
