import React, { Fragment, PropsWithChildren, FunctionComponent } from 'react'; export interface WithLoaderProps { loading?: boolean } export const WithLoader: FunctionComponent = ({ loading, children }) => { return ( { loading ?
: children }
) }