Skip to content

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.

1.5 KB
Raw Blame
import { AppLink } from 'lib/router/AppLink';
import { Button } from '@signozhq/ui/button';
import Breadcrumb from 'antd/es/breadcrumb';
import ROUTES from 'constants/routes';
import { IntegrationType } from 'container/Integrations/types';
import { Blocks, LifeBuoy } from '@signozhq/icons';

import './Header.styles.scss';

function Header({ type }: { type: IntegrationType }): JSX.Element {
	return (
		<div className="cloud-header">
			<div className="cloud-header__navigation">
				<Breadcrumb
					data-testid="cloud-header-breadcrumb"
					className="cloud-header__breadcrumb"
					items={[
						{
							title: (
								<AppLink to={ROUTES.INTEGRATIONS}>
									<span className="cloud-header__breadcrumb-link">
										<Blocks size={16} color="var(--l2-foreground)" />
										<span className="cloud-header__breadcrumb-title">Integrations</span>
									</span>
								</AppLink>
							),
						},
						{
							title: <div className="cloud-header__breadcrumb-title">{type}</div>,
						},
					]}
				/>
			</div>

			{type === IntegrationType.AWS_SERVICES && (
				<div className="cloud-header__actions">
					<Button
						variant="solid"
						size="sm"
						color="secondary"
						onClick={(): void => {
							window.open(
								'https://signoz.io/blog/native-aws-integrations-with-autodiscovery/',
								'_blank',
							);
						}}
						prefix={<LifeBuoy size={12} />}
					>
						Get Help
					</Button>
				</div>
			)}
		</div>
	);
}

export default Header;