Skip to content

Commit 1ec1c77

Browse files
committed
Add preview badge to the assistant drawer
1 parent 21d2590 commit 1ec1c77

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/compass-assistant/src/compass-assistant-drawer.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import React, { useCallback, useContext } from 'react';
22
import {
3+
Badge,
4+
css,
35
DrawerSection,
46
Icon,
57
IconButton,
68
showConfirmation,
9+
spacing,
710
} from '@mongodb-js/compass-components';
811
import { AssistantChat } from './assistant-chat';
912
import {
@@ -60,7 +63,10 @@ export const CompassAssistantDrawer: React.FunctionComponent<{
6063
justifyContent: 'space-between',
6164
}}
6265
>
63-
<span>MongoDB Assistant</span>
66+
<div>
67+
<span style={{ marginRight: spacing[200] }}>MongoDB Assistant</span>
68+
<Badge variant="blue">Preview</Badge>
69+
</div>
6470
<IconButton
6571
aria-label="Clear chat"
6672
onClick={() => {

0 commit comments

Comments
 (0)