import { css } from '@emotion/css'; import React, { FC } from 'react'; import { GrafanaTheme } from '@grafana/data'; import { useStyles } from '@grafana/ui'; export const EmptyArea: FC = ({ children }) => { const styles = useStyles(getStyles); return
{children}
; }; const getStyles = (theme: GrafanaTheme) => { return { container: css` background-color: ${theme.colors.bg2}; color: ${theme.colors.textSemiWeak}; padding: ${theme.spacing.xl}; text-align: center; `, }; };