mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-29 16:14:42 +00:00
* chore: added jsx-runtime plugin in eslint tsconfig Signed-off-by: GermaVinsmoke <vaibhav1180@gmail.com> * chore: updated react imports Signed-off-by: GermaVinsmoke <vaibhav1180@gmail.com> * chore: renamed redux dispatch Signed-off-by: GermaVinsmoke <vaibhav1180@gmail.com> * fix: build is fixed --------- Signed-off-by: GermaVinsmoke <vaibhav1180@gmail.com> Co-authored-by: Palash Gupta <palashgdev@gmail.com>
29 lines
668 B
TypeScript
29 lines
668 B
TypeScript
import { LoadingOutlined } from '@ant-design/icons';
|
|
import { Spin, SpinProps } from 'antd';
|
|
import { CSSProperties } from 'react';
|
|
|
|
import { SpinerStyle } from './styles';
|
|
|
|
function Spinner({ size, tip, height, style }: SpinnerProps): JSX.Element {
|
|
return (
|
|
<SpinerStyle height={height} style={style}>
|
|
<Spin spinning size={size} tip={tip} indicator={<LoadingOutlined spin />} />
|
|
</SpinerStyle>
|
|
);
|
|
}
|
|
|
|
interface SpinnerProps {
|
|
size?: SpinProps['size'];
|
|
tip?: SpinProps['tip'];
|
|
height?: CSSProperties['height'];
|
|
style?: CSSProperties;
|
|
}
|
|
Spinner.defaultProps = {
|
|
size: undefined,
|
|
tip: undefined,
|
|
height: undefined,
|
|
style: {},
|
|
};
|
|
|
|
export default Spinner;
|