import React from 'react'; import Spinner, { SpinnerSize } from '@/components/elements/Spinner'; import Fade from '@/components/elements/Fade'; import tw from 'twin.macro'; interface Props { visible: boolean; fixed?: boolean; size?: SpinnerSize; backgroundOpacity?: number; } const SpinnerOverlay: React.FC = ({ size, fixed, visible, backgroundOpacity, children }) => (
{children && (typeof children === 'string' ?

{children}

: children)}
); export default SpinnerOverlay;