import type { StackflowReactPlugin } from "@stackflow/react"; import { AppScreenPropsProvider } from "./components"; import { GlobalInteraction } from "./primitive"; export interface SeedPluginOptions { theme: "android" | "cupertino"; } export const seedPlugin = ( options: | SeedPluginOptions // oxlint-disable-next-line typescript/no-explicit-any -- matches upstream @stackflow/react's `initialContext: any` | ((args: { initialContext?: any }) => SeedPluginOptions), ): StackflowReactPlugin => () => ({ key: "seed-design", wrapStack({ stack, initialContext }) { const resolved = typeof options === "function" ? options({ initialContext }) : options; return ( {stack.render()} ); }, });