import React from 'react'; import cn from 'classnames'; import styles from './loader.module.css'; import AnimatedSVG, { ICONS } from 'Shared/AnimatedSVG/AnimatedSVG'; interface Props { className?: string loading?: boolean children?: React.ReactNode size?: number style?: Record } const Loader = React.memo( ({ className = '', loading = true, children = null, size = 50, style = { minHeight: '150px' }, }) => !loading ? ( <> {children} ) : (
{/*
*/}
) ); Loader.displayName = 'Loader'; export default Loader;