Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

697 B
Raw Blame
import type { GraphPreviewInvoke } from '@features/workflow/contracts';
import type { InvocationSourceId } from '@workbench/invocationContracts';

import { type ComponentType, createContext, type ReactNode } from 'react';

export interface GraphPreviewInvokeScopeProps {
  sourceId: InvocationSourceId;
  /** Closed when a run starts, or an issue's action leads elsewhere. */
  onOpenChange: (isOpen: boolean) => void;
  render: (invoke: GraphPreviewInvoke) => ReactNode;
}

/** The shell provides the top bar's Invoke here so the frame never imports top-bar code into boot. */
export const GraphPreviewInvokeScopeContext = createContext<ComponentType<GraphPreviewInvokeScopeProps> | null>(null);