import { HTMLAttributes } from 'react' import Loader from './Loader' type LoaderPortalProps = HTMLAttributes & { show?: boolean, fade?: boolean, } export const LoaderPortal: React.FC = ({ className, show, fade = true, children, ...other }) => (
{children}
{show && fade &&
} {show &&
}
) export default LoaderPortal