@@ -2,7 +2,7 @@ import type { Interpolation, Theme } from "@emotion/react";
2
2
import TaskAltIcon from "@mui/icons-material/TaskAlt" ;
3
3
import Button from "@mui/material/Button" ;
4
4
import Link from "@mui/material/Link" ;
5
- import { EnterpriseBadge , PremiumBadge } from "components/Badges/Badges" ;
5
+ import { PremiumBadge } from "components/Badges/Badges" ;
6
6
import { Stack } from "components/Stack/Stack" ;
7
7
import type { FC , ReactNode } from "react" ;
8
8
import { docs } from "utils/docs" ;
@@ -11,21 +11,27 @@ export interface PopoverPaywallProps {
11
11
message : string ;
12
12
description ?: ReactNode ;
13
13
documentationLink ?: string ;
14
- licenseType ?: "enterprise" | "premium" ;
15
14
}
16
15
17
16
export const PopoverPaywall : FC < PopoverPaywallProps > = ( {
18
17
message,
19
18
description,
20
19
documentationLink,
21
- licenseType = "enterprise" ,
22
20
} ) => {
23
21
return (
24
- < div css = { styles . root } >
22
+ < div
23
+ css = { [
24
+ styles . root ,
25
+ ( theme ) => ( {
26
+ backgroundImage : `linear-gradient(160deg, transparent, ${ theme . branding . background } )` ,
27
+ border : `1px solid ${ theme . branding . border } ` ,
28
+ } ) ,
29
+ ] }
30
+ >
25
31
< div >
26
32
< Stack direction = "row" alignItems = "center" css = { { marginBottom : 18 } } >
27
33
< h5 css = { styles . title } > { message } </ h5 >
28
- { licenseType === "premium" ? < PremiumBadge /> : < EnterpriseBadge /> }
34
+ < PremiumBadge />
29
35
</ Stack >
30
36
31
37
{ description && < p css = { styles . description } > { description } </ p > }
@@ -38,26 +44,21 @@ export const PopoverPaywall: FC<PopoverPaywallProps> = ({
38
44
Read the documentation
39
45
</ Link >
40
46
</ div >
41
- < div css = { styles . separator } > </ div >
47
+ < div css = { styles . separator } / >
42
48
< Stack direction = "column" alignItems = "center" spacing = { 2 } >
43
49
< ul css = { styles . featureList } >
44
50
< li css = { styles . feature } >
45
- < FeatureIcon /> Template access control
51
+ < FeatureIcon /> High availability & workspace proxies
46
52
</ li >
47
53
< li css = { styles . feature } >
48
- < FeatureIcon /> User groups
54
+ < FeatureIcon /> Multi-org & role - based access control
49
55
</ li >
50
56
< li css = { styles . feature } >
51
- < FeatureIcon /> 24 hour support
57
+ < FeatureIcon /> 24x7 global support with SLA
52
58
</ li >
53
59
< li css = { styles . feature } >
54
- < FeatureIcon /> Audit logs
60
+ < FeatureIcon /> Unlimited Git & external auth integrations
55
61
</ li >
56
- { licenseType === "premium" && (
57
- < li css = { styles . feature } >
58
- < FeatureIcon /> Organizations
59
- </ li >
60
- ) }
61
62
</ ul >
62
63
< Button
63
64
href = { docs ( "/enterprise" ) }
@@ -67,15 +68,23 @@ export const PopoverPaywall: FC<PopoverPaywallProps> = ({
67
68
variant = "outlined"
68
69
color = "neutral"
69
70
>
70
- Learn about { licenseType === "premium" ? " Premium" : "Enterprise" }
71
+ Learn about Premium
71
72
</ Button >
72
73
</ Stack >
73
74
</ div >
74
75
) ;
75
76
} ;
76
77
77
78
const FeatureIcon : FC = ( ) => {
78
- return < TaskAltIcon css = { styles . featureIcon } /> ;
79
+ return (
80
+ < TaskAltIcon
81
+ css = { [
82
+ ( theme ) => ( {
83
+ color : theme . branding . border ,
84
+ } ) ,
85
+ ] }
86
+ />
87
+ ) ;
79
88
} ;
80
89
81
90
const styles = {
@@ -85,8 +94,6 @@ const styles = {
85
94
alignItems : "center" ,
86
95
maxWidth : 600 ,
87
96
padding : "24px 36px" ,
88
- backgroundImage : `linear-gradient(160deg, transparent, ${ theme . roles . active . background } )` ,
89
- border : `1px solid ${ theme . roles . active . fill . outline } ` ,
90
97
borderRadius : 8 ,
91
98
gap : 18 ,
92
99
} ) ,
@@ -118,10 +125,6 @@ const styles = {
118
125
fontSize : 13 ,
119
126
fontWeight : 500 ,
120
127
} ,
121
- featureIcon : ( theme ) => ( {
122
- color : theme . roles . active . fill . outline ,
123
- fontSize : "1.5em" ,
124
- } ) ,
125
128
feature : {
126
129
display : "flex" ,
127
130
alignItems : "center" ,
0 commit comments