type InspectProps = {
id: string,
label: string,
enabled:
(
fiber: LiveFiber<any>,
fibers: Map<number, LiveFiber<any>>,
) => boolean,
render:
(
fiber: LiveFiber<any>,
fibers: Map<number, LiveFiber<any>>,
api: {
selectFiber: (
fiber: LiveFiber<any> | null | undefined,
) => void,
focusFiber: (
fiber: LiveFiber<any> | null | undefined,
) => void,
hoverFiber:
(
fiber: LiveFiber<any> | null | undefined,
fibers: Map<number, LiveFiber<any>>,
renderDepth?: number,
) => void,
makeHandlers:
(
fiber: LiveFiber<any>,
fibers: Map<number, LiveFiber<any>>,
renderDepth?: number,
) => {
select: (event: MouseEvent) => void,
hover: (event: MouseEvent) => void,
unhover: (event: MouseEvent) => void,
focus: (event: FocusEvent) => void,
},
},
) => ReactNode,
}
packages / inspect / src / components / types.ts