diff --git a/apps/web/src/components/Main.tsx b/apps/web/src/components/Main.tsx index bbd3bb0c..958706c8 100644 --- a/apps/web/src/components/Main.tsx +++ b/apps/web/src/components/Main.tsx @@ -21,6 +21,8 @@ function supportsDVH() { } export default function Main({ sidebarOpen }: { sidebarOpen: boolean }) { + // return ; + const [hide, setHide] = useState(false); const [value, setValue] = useState(''); const { width } = useViewport(); @@ -218,7 +220,7 @@ export default function Main({ sidebarOpen }: { sidebarOpen: boolean }) { }; return ( - -
+
{chatHistory.map((chat, index) => ( Ask your Second brain -
await getSearchResults(e)} + + setValue(e.target.value), + }} > - setValue(e.target.value), - }} - > -
- - -
-
- +
+ + +
+
+ {/* {searchResults && ( + + )} */} {width <= 768 && } - + + ); +} + +export function Chat({ sidebarOpen }: { sidebarOpen: boolean }) { + const [value, setValue] = useState(''); + + return ( +
+ setValue(e.target.value), + }} + > +
+ + +
+
+
); }