MCPcopy Create free account
hub / github.com/Devessier/xstatebyexample / InspectorSetter

Function InspectorSetter

src/components/AppExampleSandbox.tsx:97–112  ·  view source on GitHub ↗
({
  inspector,
  Example,
}: {
  inspector: BrowserInspector | undefined;
  Example: ExampleComponent;
})

Source from the content-addressed store, hash-verified

95});
96
97function InspectorSetter({
98 inspector,
99 Example,
100}: {
101 inspector: BrowserInspector | undefined;
102 Example: ExampleComponent;
103}) {
104 const actorOptions: ActorOptions<AnyActorLogic> | undefined =
105 inspector === undefined
106 ? undefined
107 : {
108 inspect: inspector.inspect as any,
109 };
110
111 return <Example actorOptions={actorOptions} />;
112}
113
114export function AppExampleSandbox({ Example }: { Example: ExampleComponent }) {
115 const [state, send] = useActor(inspectorLauncherMachine);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected