mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-29 16:14:42 +00:00
* chore: eslint is updated * chore: some eslint fixes are made * chore: some more eslint fix are updated * chore: some eslint fix is made * chore: styled components type is added * chore: some more eslint fix are made * chore: some more eslint fix are updated * chore: some more eslint fix are updated * fix: eslint fixes Co-authored-by: Pranshu Chittora <pranshu@signoz.io>
27 lines
605 B
TypeScript
27 lines
605 B
TypeScript
import { LoadingOutlined } from '@ant-design/icons';
|
|
import { Spin, SpinProps } from 'antd';
|
|
import React from 'react';
|
|
|
|
import { SpinerStyle } from './styles';
|
|
|
|
function Spinner({ size, tip, height }: SpinnerProps): JSX.Element {
|
|
return (
|
|
<SpinerStyle height={height}>
|
|
<Spin spinning size={size} tip={tip} indicator={<LoadingOutlined spin />} />
|
|
</SpinerStyle>
|
|
);
|
|
}
|
|
|
|
interface SpinnerProps {
|
|
size?: SpinProps['size'];
|
|
tip?: SpinProps['tip'];
|
|
height?: React.CSSProperties['height'];
|
|
}
|
|
Spinner.defaultProps = {
|
|
size: undefined,
|
|
tip: undefined,
|
|
height: undefined,
|
|
};
|
|
|
|
export default Spinner;
|