/** * Loader component * @author Yousuf Kalim */ import React, { ReactElement } from 'react'; import { Config } from '../Store'; /** * Loader * @returns {ReactElement} * @constructor Loader */ function Loader(): ReactElement { const { config } = Config(); // Get the config from the store return (
{/* If user has provided the custom loader then show, otherwise show default */} loader
); } export default Loader;