File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff 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
1012const sidebarHeaderStyles = css ( {
1113 paddingLeft : spacing [ 400 ] ,
1214 paddingRight : spacing [ 400 ] ,
1315 display : 'flex' ,
1416 justifyContent : 'space-between' ,
17+ alignItems : 'center' ,
1518} ) ;
1619
1720const 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 }
You can’t perform that action at this time.
0 commit comments