|
15 | 15 | * <http://www.mongodb.com/licensing/server-side-public-license>. |
16 | 16 | */ |
17 | 17 | import React from 'react'; |
18 | | -import styled from 'styled-components'; |
19 | | -import { PluginStore } from 'graylog-web-plugin/plugin'; |
20 | 18 |
|
21 | 19 | import { useStore } from 'stores/connect'; |
22 | 20 | import { NodesStore } from 'stores/nodes/NodesStore'; |
23 | 21 | import { DocumentTitle, PageHeader, Spinner } from 'components/common'; |
24 | | -import { Col, Row } from 'components/bootstrap'; |
25 | 22 | import { GraylogClusterOverview } from 'components/cluster'; |
26 | 23 | import PluginList from 'components/enterprise/PluginList'; |
27 | 24 | import EnterpriseProductLink from 'components/enterprise/EnterpriseProductLink'; |
28 | | -import ProductLink from 'components/enterprise/ProductLink'; |
29 | 25 | import HideOnCloud from 'util/conditional/HideOnCloud'; |
30 | | - |
31 | | -const GraylogEnterpriseHeader = styled.h2` |
32 | | - margin-bottom: 10px; |
33 | | -`; |
| 26 | +import useProductName from 'brand-customization/useProductName'; |
| 27 | +import AdvertisementSection from 'components/enterprise/AdvertisementSection'; |
| 28 | +import usePluggableUpsellWrapper from 'hooks/usePluggableUpsellWrapper'; |
34 | 29 |
|
35 | 30 | const EnterprisePage = () => { |
36 | 31 | const nodes = useStore(NodesStore); |
37 | | - const licensePlugin = PluginStore.exports('license'); |
38 | | - const ProductLinkComponent = licensePlugin[0]?.EnterpriseProductLink || ProductLink; |
| 32 | + const productName = useProductName(); |
| 33 | + const UpsellWrapper = usePluggableUpsellWrapper(); |
39 | 34 |
|
40 | 35 | if (!nodes) { |
41 | 36 | return <Spinner />; |
42 | 37 | } |
43 | 38 |
|
44 | | - const { clusterId } = nodes; |
45 | | - |
46 | 39 | return ( |
47 | | - <DocumentTitle title="Try Graylog Enterprise"> |
| 40 | + <DocumentTitle title={`Try ${productName} Enterprise`}> |
48 | 41 | <div> |
49 | | - <PageHeader title="Try Graylog Enterprise"> |
| 42 | + <PageHeader title={`Try ${productName} Enterprise`}> |
50 | 43 | <span> |
51 | | - Graylog Enterprise adds commercial functionality to the Open Source Graylog core. You can learn more about |
52 | | - Graylog Enterprise on the <EnterpriseProductLink>product page</EnterpriseProductLink>. |
| 44 | + {productName} Enterprise adds commercial functionality to the Open Source {productName} core.{' '} |
| 45 | + <UpsellWrapper> |
| 46 | + You can learn more about {productName} Enterprise on the{' '} |
| 47 | + <EnterpriseProductLink>product page</EnterpriseProductLink>. |
| 48 | + </UpsellWrapper> |
53 | 49 | </span> |
54 | 50 | </PageHeader> |
55 | 51 |
|
56 | 52 | <GraylogClusterOverview layout="compact"> |
57 | 53 | <PluginList /> |
58 | 54 | </GraylogClusterOverview> |
59 | 55 | <HideOnCloud> |
60 | | - <Row className="content"> |
61 | | - <Col md={6}> |
62 | | - <GraylogEnterpriseHeader>Graylog Enterprise</GraylogEnterpriseHeader> |
63 | | - <p> |
64 | | - Designed to meet the needs of resource-constrained IT Operations and Software Engineering teams, Graylog |
65 | | - Enterprise provides numerous productivity enhancements that will save you thousands of hours per year in |
66 | | - collecting and analyzing log data to uncover the root cause of performance, outage, and error issues. |
67 | | - </p> |
68 | | - <ProductLinkComponent href="https://go2.graylog.org/request-graylog-operations" clusterId={clusterId}> |
69 | | - Request now |
70 | | - </ProductLinkComponent> |
71 | | - </Col> |
72 | | - <Col md={6}> |
73 | | - <GraylogEnterpriseHeader>Graylog Security</GraylogEnterpriseHeader> |
74 | | - <p> |
75 | | - Extend Graylog Open’s capabilities for detecting, investigating, and responding to cybersecurity threats |
76 | | - with security-specific dashboards and alerts, anomaly detection AI/ML engine, integrations with other |
77 | | - security tools, SOAR capabilities, and numerous compliance reporting features. |
78 | | - </p> |
79 | | - <ProductLinkComponent |
80 | | - href="https://go2.graylog.org/request-graylog-security" |
81 | | - licenseSubject="/license/security" |
82 | | - clusterId={clusterId}> |
83 | | - Request now |
84 | | - </ProductLinkComponent> |
85 | | - </Col> |
86 | | - </Row> |
| 56 | + <UpsellWrapper> |
| 57 | + <AdvertisementSection /> |
| 58 | + </UpsellWrapper> |
87 | 59 | </HideOnCloud> |
88 | 60 | </div> |
89 | 61 | </DocumentTitle> |
|
0 commit comments