import { FC } from 'react'; import blockContext from './context'; import { Events } from '@prisme.ai/sdk'; export interface BlockProviderProps { config?: any; onConfigUpdate?: (config: any) => void; appConfig?: Prismeai.AppInstance['config']; onAppConfigUpdate?: (config: any) => void; events?: Events; api?: any; onLoad?: (block: any) => void; // onLoad is needed on Provider for the Development block to send it to child } export const BlockProvider: FC = ({ children, config = {}, onConfigUpdate, appConfig = {}, onAppConfigUpdate, events, api, onLoad, }) => { return ( {children} ); };