import type { PropsWithChildren } from 'react' ; import React from 'react' ; import type { InternalProps , SpacesContextProps } from './types' ; export const getSpacesContextProviderWrapper = async ( internalProps ) : Promise < React . FC < SpacesContextProps > > => { const { SpacesContextWrapperInternal } = await import ( './wrapper_internal' ) ; return ( { children , ... props } ) => { return < SpacesContextWrapperInternal { ... { ... internalProps , ... props , children } } / > ; } ; } ;