@difizen/mana-core
Version:
20 lines • 949 B
TypeScript
import type { Syringe } from '@difizen/mana-syringe';
import * as React from 'react';
import type { ViewComponent } from './view-protocol';
import { OriginViewComponent } from './view-protocol';
import './index.less';
interface ViewContainerProps {
component: ViewComponent;
viewComponentProps: Record<string, any>;
children: React.ReactNode;
}
export declare const ViewContainer: React.ForwardRefExoticComponent<ViewContainerProps & React.RefAttributes<HTMLDivElement>>;
export declare const ViewWrapper: (ViewComponent: React.FC | React.ForwardRefExoticComponent<any>, container: Syringe.Container) => WrapperViewComponent;
type WrapperViewComponent = React.FC<{
children: React.ReactNode;
}> & {
[OriginViewComponent]?: React.FC | React.ForwardRefExoticComponent<any>;
};
export declare function isWrapperViewComponent(component: any): component is WrapperViewComponent;
export {};
//# sourceMappingURL=view-container.d.ts.map