import { FC } from 'react';
import { Spin } from 'antd';
import { Dialog } from 'antd-mobile';
import React from 'react';
const Loading: FC = () => {
  return (
    <div className={'adm-error-block-full-page adm-error-block'}>
      <Spin size={'large'} />
    </div>
  );
};
export declare type DialogShowHandler = {
  endLoading: () => void;
};
export const startLoading = () => {
  const endLoading = Dialog.show({
    content: <Loading></Loading>,
    maskStyle: {
      background: 'rgb(255,255,255,0.55)',
    },
    bodyStyle: {
      background: 'rgb(255,255,255,0)',
    },
  });
  return endLoading;
};
export default startLoading