All Downloads are FREE. Search and download functionalities are using the official Maven repository.

components.common.PageLoader.tsx Maven / Gradle / Ivy

import CenteredLoader from 'components/common/CenteredLoader';
import React from 'react';

import { LoaderSize } from './Loader';

type PageLoaderProps = {
  size?: LoaderSize
  loading: boolean
  children: React.ReactNode
}

const PageLoader = ({size, loading, children}: PageLoaderProps): JSX.Element => {
  if (loading) {
    return 
  } else {
    return {children}
  }
}

export default PageLoader




© 2015 - 2024 Weber Informatics LLC | Privacy Policy