This repository was archived by the owner on Sep 29, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ function App() {
77 < div className = { styles . app_background } >
88 < div
99 style = { {
10- width : "650px " ,
10+ width : "750px " ,
1111 } }
1212 >
1313 < Chatbot />
Original file line number Diff line number Diff line change @@ -18,17 +18,37 @@ import IconButton from "@leafygreen-ui/icon-button";
1818import Icon from "@leafygreen-ui/icon" ;
1919
2020function Disclosure ( ) {
21+ const TermsOfUse = ( ) => (
22+ < Link href = { "https://www.mongodb.com/legal/terms-of-use" } >
23+ Terms of Use
24+ </ Link >
25+ ) ;
26+ const AcceptableUsePolicy = ( ) => (
27+ < Link href = { "https://www.mongodb.com/legal/acceptable-use-policy" } >
28+ Acceptable Use Policy
29+ </ Link >
30+ ) ;
31+
2132 return (
2233 < div className = { styles . disclosure } >
2334 < Badge variant = "blue" > Experimental</ Badge >
2435 < Body color = { "#FFFFFF" } >
25- By interacting with this chatbot , you agree to MongoDB's { " " }
26- < Link href = "#TODO" > Terms & Conditions </ Link >
36+ This is a generative AI chatbot. By interacting with it , you agree to
37+ MongoDB's < TermsOfUse /> and < AcceptableUsePolicy /> .
2738 </ Body >
2839 </ div >
2940 ) ;
3041}
3142
43+ function VerifyInformationBanner ( ) {
44+ return (
45+ < Banner className = { styles . lg_banner } variant = "warning" >
46+ This is an experimental generative AI chatbot. All information should be
47+ verified prior to use.
48+ </ Banner >
49+ ) ;
50+ }
51+
3252type CTACardProps = {
3353 active : boolean ;
3454 cardRef : React . RefObject < HTMLDivElement > ;
@@ -94,13 +114,11 @@ function CTACard({
94114 </ Message >
95115 ) }
96116 </ MessageList >
97- < Banner className = { styles . lg_banner } variant = "warning" >
98- This is an experimental AI chatbot. All information should be
99- verified prior to use.
100- </ Banner >
101117 </ >
102118 ) : null }
103119
120+ { active ? < VerifyInformationBanner /> : null }
121+
104122 < ChatInput
105123 ref = { inputRef }
106124 key = "wizard-input"
@@ -178,7 +196,7 @@ export default function Chatbot() {
178196 }
179197
180198 function deactivate ( ) {
181- if ( active ) {
199+ if ( active ) {
182200 setActive ( false ) ;
183201 }
184202 }
You can’t perform that action at this time.
0 commit comments