import React , { FunctionComponent } from "react" ; import SpinnerWhileRendering from "./SpinnerWhileRendering" ; interface Props { children : React . ReactNode ; } const SpinnerWhileRenderingWrapper = ( props ) => { if ( process . env . NODE_ENV === "test" ) { return < > { props . children } < />; } return < SpinnerWhileRendering { ... props } / > ; } ; export default SpinnerWhileRenderingWrapper ;