diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 1080187..037d244 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -1,7 +1,12 @@ import React from 'react' import { QueryClientProvider } from '@tanstack/react-query' -import { queryClient } from './lib/queries' +import { queryClient, useQueryDocument, useIngestDocument } from './lib/queries' import { Film } from 'lucide-react' +import { QueryInput } from './components/QueryInput' +import { KeywordsDisplay } from './components/KeywordsDisplay' +import { ResponsePanel } from './components/ResponsePanel' +import { IngestPanel } from './components/IngestPanel' +import { ErrorBoundary } from './components/ErrorBoundary' const VideoPlaceholder: React.FC = () => { return ( @@ -14,25 +19,40 @@ const VideoPlaceholder: React.FC = () => { ) } -const RightTop: React.FC = () => { - return
-} +const AppContent: React.FC = () => { + const queryMutation = useQueryDocument() + const ingestMutation = useIngestDocument() -const BottomArea: React.FC = () => { - return
-} + const handleQuerySubmit = (question: string): void => { + queryMutation.mutate({ question }) + } + + const handleFileUpload = (file: File): void => { + ingestMutation.mutate(file) + } -const AppLayout: React.FC = () => { return (
-
- +
+ + +
-
- +
+
) @@ -41,7 +61,9 @@ const AppLayout: React.FC = () => { export default function App(): JSX.Element { return ( - + + + ) }