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