ExamplePage.tsx 1.3 KB

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