import React from 'react'; import { type XComponentType } from './XComponentMap'; /** * Helper function that will wrap the provided component, and return an ExtendableComponent type. * Whenever that ExtendableComponent is used, it will check if there is a replacement component for the provided component on the context. * If there is, it will use that component instead of the provided component. * This is a similar concept to how swizzling is done in Docusaurus or obj-c, but for any React component. * * Usage: * * ```tsx * function MyComponent() { * return
>(Component: React.ComponentType ;
export default createXComponent;
//# sourceMappingURL=XComponent.d.ts.map