|
1
|
import React from "react" |
|
2
|
import { Badge } from "@/components/Badge" |
|
3
|
import { Tooltip } from "@/components/Tooltip" |
|
4
|
|
|
5
|
type BetaBadgeProps = { |
|
6
|
text?: string |
|
7
|
tooltipText?: string |
|
8
|
} |
|
9
|
|
|
10
|
export const BetaBadge = ({ |
|
11
|
text = "Coming soon", |
|
12
|
tooltipText = "Coming soon", |
|
13
|
}: BetaBadgeProps) => { |
|
14
|
return ( |
|
15
|
<Tooltip |
|
16
|
tooltipChildren={tooltipText} |
|
17
|
className="align-middle text-compact-x-small-plus" |
|
18
|
> |
|
19
|
<Badge variant="blue" badgeType="shaded" className="cursor-pointer"> |
|
20
|
{text} |
|
21
|
</Badge> |
|
22
|
</Tooltip> |
|
23
|
) |
|
24
|
} |