import React, { FC } from 'react' import classNames from 'classnames' import Loading from './loading' import { Flex } from '../flex' import { LoadingChunkProps } from './types' const LoadingChunk: FC = ({ loading, className, children, size = '40px', style, text, ...rest }) => { return (
{children} {loading && ( {text && {text}} )}
) } export default LoadingChunk