2021-06-01 15:28:05 +05:00
|
|
|
import Loader from './Loader'
|
|
|
|
|
2021-06-02 11:38:27 +05:00
|
|
|
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'>
|
2021-06-02 11:38:27 +05:00
|
|
|
{children}
|
2021-06-01 15:28:05 +05:00
|
|
|
</div>
|
2021-06-02 11:38:27 +05:00
|
|
|
{show && fade && <div className='loader-fade'/>}
|
|
|
|
{show && <div className='loader-overlay'><Loader/></div>}
|
2021-06-01 15:28:05 +05:00
|
|
|
</div>)
|
|
|
|
}
|