SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
import { Callout } from '@signozhq/ui/callout';
import { Spin } from 'antd';
import { LoaderCircle } from '@signozhq/icons';
import { ModalStateEnum } from '../HeroSection/types';
function AlertMessage({
modalState,
}: {
modalState: ModalStateEnum;
}): JSX.Element | null {
switch (modalState) {
case ModalStateEnum.WAITING:
return (
<Callout
title={
<div className="cloud-account-setup-form__alert-message">
<Spin indicator={<LoaderCircle size={14} className="animate-spin" />} />
Waiting for connection, retrying in{' '}
<span className="retry-time">10</span> secs...
</div>
}
type="info"
showIcon={false}
testId="cloud-connect-waiting"
/>
);
case ModalStateEnum.ERROR:
return (
<Callout
title={
<div className="cloud-account-setup-form__alert-message">
{`We couldn't establish a connection to your AWS account. Please try again`}
</div>
}
type="error"
testId="cloud-connect-error"
/>
);
default:
return null;
}
}
export default AlertMessage;