MCPcopy
hub / github.com/premieroctet/openchakra / getIsSelectedComponent

Function getIsSelectedComponent

src/core/selectors/components.ts:24–26  ·  view source on GitHub ↗
(componentId: IComponent['id'])

Source from the content-addressed store, hash-verified

22 state.components.present.selectedId
23
24export const getIsSelectedComponent = (componentId: IComponent['id']) => (
25 state: RootState,
26) => state.components.present.selectedId === componentId
27
28export const getSelectedComponentChildren = (state: RootState) => {
29 return getSelectedComponent(state).children.map(child =>

Callers 1

useInteractiveFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected