@@ -3,27 +3,29 @@ import TaskAltIcon from "@mui/icons-material/TaskAlt";
3
3
import Button from "@mui/material/Button" ;
4
4
import Link from "@mui/material/Link" ;
5
5
import type { FC , ReactNode } from "react" ;
6
- import { EnterpriseBadge } from "components/Badges/Badges" ;
6
+ import { EnterpriseBadge , PremiumBadge } from "components/Badges/Badges" ;
7
7
import { Stack } from "components/Stack/Stack" ;
8
8
import { docs } from "utils/docs" ;
9
9
10
10
export interface PopoverPaywallProps {
11
11
message : string ;
12
12
description ?: ReactNode ;
13
13
documentationLink ?: string ;
14
+ licenseType ?: "enterprise" | "premium" ;
14
15
}
15
16
16
17
export const PopoverPaywall : FC < PopoverPaywallProps > = ( {
17
18
message,
18
19
description,
19
20
documentationLink,
21
+ licenseType = "enterprise" ,
20
22
} ) => {
21
23
return (
22
24
< div css = { styles . root } >
23
25
< div >
24
26
< Stack direction = "row" alignItems = "center" css = { { marginBottom : 18 } } >
25
27
< h5 css = { styles . title } > { message } </ h5 >
26
- < EnterpriseBadge />
28
+ { licenseType === "premium" ? < PremiumBadge /> : < EnterpriseBadge /> }
27
29
</ Stack >
28
30
29
31
{ description && < p css = { styles . description } > { description } </ p > }
@@ -51,6 +53,11 @@ export const PopoverPaywall: FC<PopoverPaywallProps> = ({
51
53
< li css = { styles . feature } >
52
54
< FeatureIcon /> Audit logs
53
55
</ li >
56
+ { licenseType === "premium" && (
57
+ < li css = { styles . feature } >
58
+ < FeatureIcon /> Organizations
59
+ </ li >
60
+ ) }
54
61
</ ul >
55
62
< Button
56
63
href = { docs ( "/enterprise" ) }
@@ -60,7 +67,7 @@ export const PopoverPaywall: FC<PopoverPaywallProps> = ({
60
67
variant = "outlined"
61
68
color = "neutral"
62
69
>
63
- Learn about Enterprise
70
+ Learn about { licenseType === "premium" ? "Premium" : " Enterprise" }
64
71
</ Button >
65
72
</ Stack >
66
73
</ div >
0 commit comments