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.

788 B
Raw Blame
import { Typography } from '@signozhq/ui/typography';

import NewDashboardButton from './NewDashboardButton';

import styles from './DashboardsList.module.scss';

interface Props {
	label: string;
	count: number;
	isModified: boolean;
	onCreate: () => void;
}

function CommandHeader({
	label,
	count,
	isModified,
	onCreate,
}: Props): JSX.Element {
	return (
		<div className={styles.commandHeader}>
			<div className={styles.headingBlock}>
				<Typography.Title className={styles.title}>{label}</Typography.Title>
				{isModified && <span className={styles.dirtyDot} title="Unsaved changes" />}
				<span className={styles.countPill}>{count}</span>
			</div>
			<div className={styles.grow} />
			<NewDashboardButton onClick={onCreate} />
		</div>
	);
}

export default CommandHeader;