import { VuiGrid, VuiSpacer, VuiText, VuiTextColor } from "../../ui"; import { useConfigContext } from "../../contexts/ConfigurationContext"; import { useChatContext } from "../../contexts/ChatContext"; import { ExampleQuestion } from "./ExampleQuestion"; import "./exampleQuestions.scss"; export const ExampleQuestions = () => { const { exampleQuestions } = useConfigContext(); const { onSubmitChat } = useChatContext(); const hasExampleQuestions = exampleQuestions.length > 0; if (!hasExampleQuestions) return null; return (

Try out these example questions

{exampleQuestions.map((exampleQuestion) => ( onSubmitChat(exampleQuestion)} title={exampleQuestion} /> ))}
); };