there is an issue in type definition of the WithFlags Hoc It returns a function that don't take any parameter But it potentially have a props parameter ` export const WithFlags: ( key: string ) => (ComponentA: any, ComponentB?: any) => (props:any) => JSX.Element; `