import { Coin1, DollarCircle, Radar, Star } from "iconsax-react";
import { StatusBoxItemInterface } from "../types";

export const statusBoxItems: StatusBoxItemInterface[] | [] = [
    {
        name: "dollar",
        title: "دارایی دلاری",
        icon: <DollarCircle color="#292D32" variant="Bold" className="size-[40px]" />,
        value: 8
    },
    {
        name: "coin",
        title: "دارایی از تمدید اشتراک",
        icon: <Coin1 color="#292D32" variant="Bold" className="size-[40px]" />,
        value: 300589
    },
    {
        name: "star",
        title: "امتیاز شرکت در قرعه کشی",
        icon: <Star color="#292D32" variant="Bold" className="size-[40px]" />,
        value: 65
    },
    {
        name: "radar",
        title: "تعداد کل دستگاه ثبت شده موفق",
        icon: <Radar color="#292D32" variant="Bold" className="size-[40px]" />,
        value: 171
    },
]

export const statusBoxWalletItems: StatusBoxItemInterface[] | [] = [
    {
        name: "dollar",
        title: "دارایی دلاری",
        icon: <DollarCircle color="#292D32" variant="Bold" className="size-[40px]" />,
        value: 8,
        detail: true
    },
    {
        name: "coin",
        title: "دارایی از تمدید اشتراک",
        icon: <Coin1 color="#292D32" variant="Bold" className="size-[40px]" />,
        value: 300589
    },
]

export const filterNumber = (value: number) => value?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")