'use client' import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card' import { BarChart3, Smartphone, Key, MessageSquare } from 'lucide-react' import GetStartedCard from './get-started' import { ApiEndpoints } from '@/config/api' import httpBrowserClient from '@/lib/httpBrowserClient' import { useQuery } from '@tanstack/react-query' import { Skeleton } from '@/components/ui/skeleton' // import GetStartedCard from "@/components/get-started-card"; export const StatCard = ({ title, value, icon: Icon, description }) => { return ( {title}
{value ?? }

{description}

) } export default function Overview() { const { data: stats } = useQuery({ queryKey: ['stats'], queryFn: () => httpBrowserClient .get(ApiEndpoints.gateway.getStats()) .then((res) => res.data?.data), }) return (
) }