import React from 'react'; import { css } from '@emotion/css'; import { RTCell } from '../../types'; import { ProblemDTO } from '../../../datasource-zabbix/types'; import { FAIcon } from '../../../components'; import { useTheme, stylesFactory } from '@grafana/ui'; import { GrafanaTheme } from '@grafana/data'; const getStyles = stylesFactory((theme: GrafanaTheme) => { return { countLabel: css` font-size: ${theme.typography.size.sm}; `, }; }); export const AckCell: React.FC> = (props: RTCell) => { const problem = props.original; const theme = useTheme(); const styles = getStyles(theme); return (
{problem.acknowledges?.length > 0 && <> ({problem.acknowledges?.length}) }
); }; export default AckCell;