Skip to content

Commit

Permalink
add modaview
Browse files Browse the repository at this point in the history
  • Loading branch information
seungpark committed Nov 22, 2024
1 parent c1d07a0 commit fc3c8e8
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/components/ActionBar/ChatbotButton.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { useChatbotContext } from 'mongodb-chatbot-ui';
import { useChatbotContext, ModalView, MongoDbLegalDisclosure, PoweredByAtlasVectorSearch } from 'mongodb-chatbot-ui';
import { css, cx } from '@leafygreen-ui/emotion';
import Button from '@leafygreen-ui/button';
import Icon from '@leafygreen-ui/icon';
Expand Down Expand Up @@ -37,6 +37,22 @@ const ChatbotButton = () => {
<IconButton className={iconStyling} variant={'primaryOutline'} aria-label="Ask MongoDB AI" onClick={onClick}>
<SparkleIcon />
</IconButton>
<ModalView
inputBottomText={
'This is an experimental generative AI chatbot. All information should be verified prior to use.'
}
disclaimer={
<>
<MongoDbLegalDisclosure />
<PoweredByAtlasVectorSearch
linkStyle="text"
className={css`
margin-top: 8px;
`}
/>
</>
}
/>
</>
);
};
Expand Down

0 comments on commit fc3c8e8

Please sign in to comment.