diff --git a/explore-assistant-extension/src/pages/ExploreAssistantPage/index.tsx b/explore-assistant-extension/src/pages/ExploreAssistantPage/index.tsx index 9b0af37c..3afd8260 100644 --- a/explore-assistant-extension/src/pages/ExploreAssistantPage/index.tsx +++ b/explore-assistant-extension/src/pages/ExploreAssistantPage/index.tsx @@ -3,7 +3,6 @@ import { Button, FieldTextArea, Heading, - Layout, Paragraph, Section, Space, @@ -26,6 +25,7 @@ import SamplePrompts from '../../components/SamplePrompts' import PromptHistory from '../../components/PromptHistory' import { RootState } from '../../store' import useFetchData from '../../hooks/useSendVertexMessage' +import ExploreBasePage from '../ExploreBasePage/' const ExploreAssistantPage = () => { const dispatch = useDispatch() @@ -33,7 +33,7 @@ const ExploreAssistantPage = () => { const [textAreaValue, setTextAreaValue] = React.useState('') const { extensionSDK } = useContext(ExtensionContext) - const { exploreUrl, isQuerying, history } = useSelector( + const { exploreUrl, isQuerying, history, examples} = useSelector( (state: RootState) => state.assistant, ) @@ -80,7 +80,7 @@ const ExploreAssistantPage = () => { JSON.stringify(updatedHistory), ) }, - [history], + [history, examples], ) const handleSubmit = useCallback(async () => { @@ -97,8 +97,7 @@ const ExploreAssistantPage = () => { } return ( - <> - + - )} - + ) }