"use client" import { Progress } from "@/components/ui/progress"; import { useTranslations } from "next-intl"; import Image from "next/image"; const customers = [ { title: "Nicole Kidman", img: "/images/all-img/cus-1.png", value: 70, bg: "before:bg-info/30", barColor: "info", number: 2, }, { title: "Monica Bellucci", img: "/images/all-img/cus-2.png", value: 80, bg: "before:bg-warning/30", barColor: "warning", active: true, number: 1, }, { title: "Pamela Anderson", img: "/images/all-img/cus-3.png", value: 65, bg: "before:bg-success/30", barColor: "success", number: 3, }, { title: "Dianne Russell", img: "/images/users/user-1.jpg", value: 60, bg: "before:bg-info/30", barColor: "info", number: 4, }, { title: "Robert De Niro", img: "/images/users/user-2.jpg", value: 50, bg: "before:bg-warning/30", barColor: "warning", number: 5, }, { title: "De Niro", img: "/images/users/user-3.jpg", value: 60, bg: "before:bg-warning/30", barColor: "warning", number: 6, } ]; const CustomerList = ({ item }: any) => { const t = useTranslations("EcommerceDashboard"); return (
{item.active && ( )} {item.number}

{item.title}

{item.value}
{t("progress")} {item.value}%
); } const CustomerCard = ({ item }: any) => { const t = useTranslations("EcommerceDashboard"); return
{item.active && ( )} {item.number}

{item.title}

{item.value}
{t("progress")} {item.value}%
; }; const Customer = () => { const t = useTranslations("EcommerceDashboard"); return (
{customers.slice(0, 3).map((item, i) => )}
{customers.slice(3, 8).map((item, i) => )}
); }; export default Customer;