import { css } from '@emotion/css'; import { FieldType, formattedValueToString, getDisplayProcessor, GrafanaTheme2, QueryResultMetaStat, TimeZone, } from '@grafana/data'; import { useStyles2, useTheme2 } from '@grafana/ui'; interface InspectStatsTableProps { timeZone: TimeZone; name: string; stats: QueryResultMetaStat[]; } export const InspectStatsTable = ({ timeZone, name, stats }: InspectStatsTableProps) => { const theme = useTheme2(); const styles = useStyles2(getStyles); if (!stats || !stats.length) { return null; } return (
{stat.displayName} | {formatStat(stat, timeZone, theme)} |