"use client";
import Link from "next/link";
import { motion } from "framer-motion";
import { BadgePlus, Compass } from "lucide-react";
import { cn } from "@/lib/utils";
import { Button, buttonVariants } from "@/components/ui/button";
import HeroVideoDialog from "@/components/magicui/hero-video";
import { useQuery } from "@tanstack/react-query";
import axios, { AxiosError } from "axios";
import Spinner from "../spinner";
import { toast } from "sonner";
const ease = [0.16, 1, 0.3, 1];
function HeroPill() {
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 (