@tapcart/app-studio-utils
Version:
A utility library for Tapcart's App Studio
15 lines • 687 B
TypeScript
import React from "react";
import { AppStudioComponent, BlockScope } from "./types";
type AppStudioComponentsContextInterface = {
appStudioComponents: Record<string, React.ComponentType | Function>;
setComponentScope: (newScope: Record<string, any>) => void;
isReady: boolean;
};
export declare const AppStudioComponentsProvider: ({ children, componentInputs, scopeInput, }: {
children: React.ReactNode;
componentInputs: Record<string, AppStudioComponent>;
scopeInput?: BlockScope;
}) => import("react/jsx-runtime").JSX.Element;
export declare const useAppStudioComponents: () => AppStudioComponentsContextInterface;
export {};
//# sourceMappingURL=index.d.ts.map