Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return function wrapComponent(
OriginalComponent: React.ComponentType & C,
): React.ComponentType & NonReactStatics {
const Result = reactCompose(...wrappingFunctions)(
OriginalComponent,
) as React.ComponentType;
// eslint-disable-next-line react/display-name
return (React.forwardRef((props: any, ref: React.RefObject) => {
return (
);
}) as unknown) as React.ComponentType &
NonReactStatics;
};
}