"use client"; import { appConfig } from "@/shared/config/app-config"; import { TrendingUp, Download } from "lucide-react"; import Image from "next/image"; import Link from "next/link"; type Props = { url: string; icon: string; title: string; value: number | string; loading?: boolean; }; export function StatisticCardItem({ url, icon, title, value, loading }: Props) { const isDisabled = title === "Total Pengunjung"; if (loading) { return (
); } return ( e.preventDefault() : undefined} aria-disabled={isDisabled} className={`group border-primary bg-biru-300 font-onest relative h-[150px] h-full overflow-hidden rounded-3xl border border-3 px-7 py-5 transition-all duration-300 ease-in-out ${isDisabled ? "hover:cursor-default" : "hover:cursor-pointer"}`} >
{value}
icon

{title}

{title === "Total Pengunjung" ? ( <> Pengunjung dalam 1 Tahun ) : title === "Total Unduhan" ? ( <> Unduhan dalam 1 Tahun ) : (

Lihat Semua

)}
ornament ); }