import React from "react" ; import { Spin } from "antd" ; import classNames from "classnames" ; import { LoadingOutlined } from "@ant-design/icons" ; import { SpinProps } from "antd/es/spin" ; import styles from "./Spinner.module.less" ; Spin . setDefaultIndicator ( < LoadingOutlined spin / > ) ; const Spinner = ( { className , size , tip , delay , indicator , spinning , style , } ) => ( < Spin className = { classNames ( styles . spinWrap , className ) } size = { size } tip = { tip } delay = { delay } indicator = { indicator || < LoadingOutlined spin / > } spinning = { spinning } style = { style } / > ) ; export default Spinner ;