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