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.

732 B
Raw Blame
import { useRef } from 'react';

import { getPanelDefinition } from '../../../Panels/registry';
import type { PanelKind } from '../../../Panels/types/panelKind';
import { usePanelPickerReveal } from '../hooks/usePanelPickerReveal';

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

function NewPanelPlaceholder({ kind }: { kind: PanelKind }): JSX.Element {
	const ref = useRef<HTMLDivElement>(null);
	usePanelPickerReveal(ref, true);

	return (
		<div
			ref={ref}
			className={styles.placeholder}
			data-testid="new-panel-placeholder"
		>
			<span className={styles.name}>{getPanelDefinition(kind).displayName}</span>
			<span className={styles.label}>New panel</span>
		</div>
	);
}

export default NewPanelPlaceholder;