NotEnabed.tsx 851 B

123456789101112131415161718192021222324252627282930313233
  1. import { css } from '@emotion/css';
  2. import React from 'react';
  3. import { NavModel, NavModelItem } from '@grafana/data';
  4. import { Page } from 'app/core/components/Page/Page';
  5. const node: NavModelItem = {
  6. id: 'not-found',
  7. text: 'The plugin catalog is not enabled',
  8. icon: 'exclamation-triangle',
  9. url: 'not-found',
  10. };
  11. const navModel: NavModel = { node, main: node };
  12. export default function NotEnabled(): JSX.Element | null {
  13. return (
  14. <Page navModel={navModel}>
  15. <Page.Contents>
  16. To enable installing plugins via catalog, please refer to the{' '}
  17. <a
  18. className={css`
  19. text-decoration: underline;
  20. `}
  21. href="https://grafana.com/docs/grafana/latest/plugins/catalog"
  22. >
  23. Plugin Catalog
  24. </a>{' '}
  25. instructions
  26. </Page.Contents>
  27. </Page>
  28. );
  29. }