'use client';
import { motion, HTMLMotionProps } from 'framer-motion';
import React from 'react';
import { useEffect , useState} from "react";
import axios from "axios";
const AnimatedIcon: React.FC> = ({ children, ...props }) => {
return (
{children}
);
};
export default function Footer() {
const [CA, setCA] = useState("");
useEffect(() => {
axios.get("https://catools.dev3vds1.link/get/dotbase")
.then(response => {
const data = response.data
if (data) {
// console.log(`this is the data addr : ${data.address}`)
setCA(data[0].address);
}
})
.catch(error => {
console.error("Error fetching CA:", error);
});
}, []);
return (
);
}