import React from 'react'
import { Spin, Icon } from 'antd';
import { LoadingOutlined } from '@ant-design/icons'
const antIcon = <LoadingOutlined style={{ fontSize: 24 }} spin />;

export default function Loader(props){
    return(
        <div className='loader-wrapper'>
            {props.scanFlag ? <Spin indicator={antIcon} /> : <Spin tip="Loading..."/> }
            {/* <Spin tip="Loading..."/>  */}
        </div>
    )
}