/* eslint-disable */ "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 { 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(); if (session === null) { redirectToLogin(); } return (

Explore uploaded data

View or delete stored data used by your brain

{isPending ? ( ) : ( {documents.length !== 0 ? ( {documents.map((document) => ( ))} ) : (

Oh No, Your Brain is empty.

)}
)}
); }; export default ExplorePage;