asb_cloud_front/src/components/LoaderPortal.jsx

12 lines
356 B
React
Raw Normal View History

2021-06-01 15:28:05 +05:00
import Loader from './Loader'
export default function LoaderPortal({show, fade=true, children}){
2021-06-01 15:28:05 +05:00
return(
<div className='loader-container'>
<div className='loader-content'>
{children}
2021-06-01 15:28:05 +05:00
</div>
{show && fade && <div className='loader-fade'/>}
{show && <div className='loader-overlay'><Loader/></div>}
2021-06-01 15:28:05 +05:00
</div>)
}