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