Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

436 B
Raw Blame
import React, { ReactNode } from 'react';
import { LoadingMask } from "../LoadingMask";

type LoadingContainerProps = React.HTMLProps<HTMLDivElement> & {
    children: ReactNode;
};

export const LoadingContainer: React.FC<LoadingContainerProps> = ({children, ...props}) => {
    return (
        <div {...props} style={{...props.style, position: 'relative'}}>
            <LoadingMask/>
            {children}
        </div>
    );
};