ExamplePage.tsx 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import * as React from 'react';
  2. import Helmet from 'react-helmet';
  3. import {
  4. Page,
  5. PageSection,
  6. Text,
  7. TextContent,
  8. Title,
  9. } from '@patternfly/react-core';
  10. export default function ExamplePage() {
  11. return (
  12. <>
  13. <Helmet>
  14. <title>Hello, Plugin!</title>
  15. </Helmet>
  16. <Page>
  17. <PageSection variant="light">
  18. <Title headingLevel="h1">Hello, Plugin!</Title>
  19. </PageSection>
  20. <PageSection variant="light">
  21. <TextContent>
  22. <Text component="p">Nice! Your plugin is working.</Text>
  23. <Text component="p">
  24. This is a custom page contributed by the console plugin template.
  25. The extension that adds the page is declared in
  26. console-extensions.json in the project root along with the
  27. corresponding nav item. Update console-extensions.json to change
  28. or add extensions. Code references in console-extensions.json must
  29. have a corresonding property <code>exposedModules</code> in
  30. package.json mapping the reference to the module.
  31. </Text>
  32. <Text component="p">
  33. After cloning this project, replace references to{' '}
  34. <code>console-template-plugin</code> and other plugin metadata in
  35. package.json with values for your plugin.
  36. </Text>
  37. </TextContent>
  38. </PageSection>
  39. </Page>
  40. </>
  41. );
  42. }