EmptyQueryListBanner.tsx 552 B

123456789101112131415161718192021
  1. import { css } from '@emotion/css';
  2. import React from 'react';
  3. import { GrafanaTheme2 } from '@grafana/data';
  4. import { useStyles2 } from '@grafana/ui';
  5. export const EmptyQueryListBanner = () => {
  6. const styles = useStyles2(getStyles);
  7. return <div className={styles.noResult}>No playlist found!</div>;
  8. };
  9. const getStyles = (theme: GrafanaTheme2) => {
  10. return {
  11. noResult: css`
  12. padding: ${theme.spacing(2)};
  13. background: ${theme.colors.secondary.main};
  14. font-style: italic;
  15. margin-top: ${theme.spacing(2)};
  16. `,
  17. };
  18. };