diff --git a/apps/web/src/components/Main.tsx b/apps/web/src/components/Main.tsx index 9869a0fe..67c73c2c 100644 --- a/apps/web/src/components/Main.tsx +++ b/apps/web/src/components/Main.tsx @@ -263,6 +263,8 @@ export default function Main({ sidebarOpen }: { sidebarOpen: boolean }) { askQuestion={onSend} setValue={setValue} value={value} + selectedSpaces={selectedSpaces} + setSelectedSpaces={setSelectedSpaces} /> ) : (
void; setValue: (value: string) => void; value: string; + selectedSpaces: number[]; + setSelectedSpaces: React.Dispatch>; }) { const textArea = useRef(null); @@ -384,7 +390,7 @@ export function Chat({ data-sidebar-open={sidebarOpen} className="absolute flex w-full items-center justify-center" > -
+
{ @@ -393,9 +399,8 @@ export function Chat({ side="top" align="start" className="bg-[#252525]" - // TODO: SPACES FILTER HERE - selectedSpaces={[]} - setSelectedSpaces={(spaces) => {}} + selectedSpaces={selectedSpaces} + setSelectedSpaces={setSelectedSpaces} />