Explore uploaded data in {currentBrain.name}
View or delete stored data used by your brain
Oh No, Your Brain is empty.
"use client"; import { AnimatePresence, motion } from "framer-motion"; import Link from "next/link"; import Button from "@/lib/components/ui/Button"; import Spinner from "@/lib/components/ui/Spinner"; import { useBrainContext } from "@/lib/context/BrainProvider/hooks/useBrainContext"; import { useSupabase } from "@/lib/context/SupabaseProvider"; import { redirectToLogin } from "@/lib/router/redirectToLogin"; import DocumentItem from "./DocumentItem"; import { useExplore } from "./hooks/useExplore"; const ExplorePage = (): JSX.Element => { const { session } = useSupabase(); const { documents, setDocuments, isPending } = useExplore(); const { currentBrain } = useBrainContext(); if (session === null) { redirectToLogin(); } if (currentBrain === undefined) { return (
{"You need to select a brain first. 🧠💡🥲"}
Oh No, Your Brain is empty.