"use client";
import { UUID } from "crypto";
import { AnimatePresence, motion } from "framer-motion";
import { LoaderIcon } from "@/lib/components/ui/LoaderIcon/LoaderIcon";
import { MessageInfoBox } from "@/lib/components/ui/MessageInfoBox/MessageInfoBox";
import styles from "./KnowledgeTab.module.scss";
import { KnowledgeTable } from "./KnowledgeTable/KnowledgeTable";
import { useAddedKnowledge } from "./hooks/useAddedKnowledge";
type KnowledgeTabProps = {
brainId: UUID;
hasEditRights: boolean;
};
export const KnowledgeTab = ({ brainId }: KnowledgeTabProps): JSX.Element => {
const { isPending, allKnowledge } = useAddedKnowledge({
brainId,
});
if (isPending) {
return