import { useSession } from "next-auth/react"; import { connectionStore } from "../../_store/connectionStore"; import { useEffect } from "react"; import { CheckCircledIcon } from "@radix-ui/react-icons"; export const ConnectBtn = () => { return ( <> > ); }; export const ConnectedBtn = () => { return ( <> > ); }; export const Connection = () => { const session = useSession(); const cStore = connectionStore((state) => state); const uid = session.data?.user?.id; useEffect(() => { if (uid) { cStore.connect(uid); } }, [uid]); return