import React from 'react' ; import style from './index.module.css' ; export type LoadingProps = { message ? : String ; } ; const Loading = ( { message } ) => { return ( < div className = { style . overlay } > < div className = { style [ 'child-div' ] } > < div className = { style [ 'lds-dual-ring' ] } > < /div> < div > { message ? message : 'Loading' } < /div> < /div> < /div>); } ; export default React . memo ( Loading ) ;