Skip to content

Commit a44c559

Browse files
committed
add preview badge
1 parent 7f09aed commit a44c559

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/compass-sidebar/src/components/multiple-connections/header/sidebar-header.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@ import {
55
css,
66
type ItemAction,
77
ItemActionControls,
8+
Badge,
9+
BadgeVariant,
810
} from '@mongodb-js/compass-components';
911

1012
const sidebarHeaderStyles = css({
1113
paddingLeft: spacing[400],
1214
paddingRight: spacing[400],
1315
display: 'flex',
1416
justifyContent: 'space-between',
17+
alignItems: 'center',
1518
});
1619

1720
const sidebarHeaderTextStyles = css({
@@ -41,6 +44,11 @@ export function SidebarHeader({
4144
<Subtitle className={sidebarHeaderTextStyles}>
4245
{isCompassWeb ? 'Data Explorer' : 'Compass'}
4346
</Subtitle>
47+
{isCompassWeb && (
48+
<Badge variant={BadgeVariant.Blue} data-testid="sidebar-header-badge">
49+
Preview
50+
</Badge>
51+
)}
4452
{!isCompassWeb && (
4553
<ItemActionControls<Action>
4654
onAction={onAction}

0 commit comments

Comments
 (0)