@@ -465,15 +465,15 @@ const suggestedQuestions = [
465465];
466466
467467preview .show (< FILE_ID > , < TOKEN > , {
468- container: ' .preview-container' ,
469- contentAnswersProps= {
470- show: true ,
471- isCitationsEnabled: true ,
472- isMarkdownEnabled: true ,
473- isResetChatEnabled: true ,
474- suggestedQuestions
475- }
476- hasHeader: true ,
468+ container: ' .preview-container' ,
469+ contentAnswersProps= {
470+ show: true ,
471+ isCitationsEnabled: true ,
472+ isMarkdownEnabled: true ,
473+ isResetChatEnabled: true ,
474+ suggestedQuestions
475+ }
476+ hasHeader: true ,
477477});
478478```
479479
@@ -495,7 +495,7 @@ To localize the `suggestedQuestions` properly, make sure that the prompts are tr
495495import ContentPreview from ' box-ui-elements/es/elements/content-preview' ;
496496import { IntlProvider } from " react-intl" ;
497497
498- const suggestedQuestions = [
498+ const questions = [
499499 {
500500 label: ' Key takeaways' ,
501501 prompt: ' What are the key takeaways from this document?' ,
@@ -521,11 +521,11 @@ export default () => {
521521 isCitationsEnabled: true ,
522522 isMarkdownEnabled: true ,
523523 isResetChatEnabled: true ,
524- suggestedQuestions
524+ suggestedQuestions: questions
525525 }}
526526 fileId= {FILE_ID }
527527 token= {TOKEN }
528- hasHeader= true
528+ hasHeader= " true"
529529 / >
530530 < / IntlProvider>
531531 );
0 commit comments