diff --git a/frontend/src/Hero.tsx b/frontend/src/Hero.tsx index 497fc41e..9e489889 100644 --- a/frontend/src/Hero.tsx +++ b/frontend/src/Hero.tsx @@ -1,190 +1,50 @@ import { useDarkTheme, useMediaQuery } from './hooks'; import DocsGPT3 from './assets/cute_docsgpt3.svg'; - +import SourceDropdown from './components/SourceDropdown'; +import { useSelector } from 'react-redux'; +import { selectSourceDocs,selectSelectedDocs,selectConversations,selectModalStateDeleteConv } from './preferences/preferenceSlice'; export default function Hero({ className = '' }: { className?: string }) { // const isMobile = window.innerWidth <= 768; const { isMobile } = useMediaQuery(); const [isDarkTheme] = useDarkTheme(); + const docs = useSelector(selectSourceDocs); + const selectedDocs = useSelector(selectSelectedDocs); + const conversations = useSelector(selectConversations); + const modalStateDeleteConv = useSelector(selectModalStateDeleteConv); return (
DocsGPT
-- Welcome to DocsGPT, your technical - documentation assistant! Start by entering your query in the input - field below, and we'll provide you with the most relevant - answers. -
- ) : ( - <> -- Welcome to DocsGPT, your technical documentation assistant! -
-
- Enter a query related to the information in the documentation you
- selected to receive
-
and we will provide you with the most relevant answers.
-
- Start by entering your query in the input field below and we will do - the rest! -
- > - )} -- DocsGPT will use your data to answer questions. Whether its - documentation, source code, or Microsoft files, DocsGPT allows you - to have interactive conversations and find answers based on the - provided data. -
-Chat with your documentation
+ Upload documents and get your answers- The security of your data is our top priority. DocsGPT ensures the - utmost protection for your sensitive information. With secure data - storage and privacy measures in place, you can trust that your - data is kept safe and confidential. -
-Chat with your documentation
+ Upload documents and get your answers- DocsGPT is built on open source principles, promoting transparency - and collaboration. The source code is freely available, enabling - developers to contribute, enhance, and customize the app to meet - their specific needs. -
-Chat with your documentation
+ Upload documents and get your answers +Chat with your documentation
+ Upload documents and get your answers