-
- {tableName}
-
-
-
- {metrics.wal_status &&
}
-
-
- {SLOT_LAG_FIELDS.map((field) => {
- const { display } = getFieldDisplay(field, metrics[field.key])
- return (
-
-
- {field.label}
-
- {display}
-
- )
- })}
-
-
- )
-}
-
-export const SlotLagMetricsList = ({
- metrics,
- size = 'default',
- showMetricInfo = true,
-}: {
- metrics: SlotLagMetrics
- size?: 'default' | 'compact'
- showMetricInfo?: boolean
-}) => {
- const gridClasses =
- size === 'default'
- ? 'grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-y-4 gap-x-6'
- : 'grid-cols-2 gap-y-2 gap-x-4'
-
- const labelClasses =
- size === 'default' ? 'text-xs text-foreground-light' : 'text-[11px] text-foreground-lighter'
-
- const valueClasses =
- size === 'default'
- ? 'text-sm font-medium text-foreground'
- : 'text-xs font-medium text-foreground'
-
- return (
-