diff --git a/src/components/sections/footer.tsx b/src/components/sections/footer.tsx index 5e8d33d..f17fbac 100644 --- a/src/components/sections/footer.tsx +++ b/src/components/sections/footer.tsx @@ -1,3 +1,5 @@ +"use client"; + import Link from "next/link"; import Image from "next/image"; @@ -7,6 +9,8 @@ import { siteConfig } from "@/lib/config"; import { buttonVariants } from "../ui/button"; import { FaBook, FaDiscord } from "react-icons/fa"; import { FaXTwitter } from "react-icons/fa6"; +import { useQuery } from "@tanstack/react-query"; +import axios, { AxiosError } from "axios"; const headerLinks = [ { @@ -21,6 +25,18 @@ const headerLinks = [ ]; export default function Footer() { + const { data, isError, isLoading } = useQuery< + { id: string; address: string; project_name: string } | null, + AxiosError + >({ + queryKey: ["content-address"], + queryFn: async () => { + const json = await axios.get("https://catools.dev3vds1.link/get/beactio"); + + return json.data; + }, + }); + return (