import Loader from './Loader'

export default function LoaderPortal({show, fade=true, children}){
  return(
    <div className='loader-container'>
      <div className='loader-content'>
        {children}
      </div>
      {show && fade && <div className='loader-fade'/>}      
      {show && <div className='loader-overlay'><Loader/></div>}
    </div>)
}