import Image from 'next/image'
import Link from 'next/link'

const ProfileFeatureList = () => {
  const items = [
    {
      icon: '/images/profile/membership.png',
      label: 'VIP',
      desc: <span className="txt-body-s text-white/60">Not Unlocked</span>,
      href: '/vip',
    },
    {
      icon: '/images/profile/wallet.png',
      label: 'Wallet',
      desc: (
        <div className="flex gap-2">
          <Image src="/icons/diamond.svg" alt="Diamond" width={16} height={16} />
          15
        </div>
      ),
      href: '/wallet',
    },
  ]

  return (
    <div className="flex w-full items-center justify-between gap-4">
      {items.map((item) => (
        <Link
          key={item.href}
          href={item.href}
          className="flex px-6 h-28 rounded-2xl justify-between w-full cursor-pointer items-center"
          style={{
            background:
              'linear-gradient(90deg, rgba(254, 255, 222, 0.1) 0%, rgba(251, 222, 255, 0.08) 100%)',
          }}
        >
          <div className="flex gap-4 items-center">
            <Image src={item.icon} alt={item.label} width={64} height={64} />
            <div className="flex flex-col">
              <div className="txt-title-m mb-2 text-white">{item.label}</div>
              {item.desc}
            </div>
          </div>
          <div className="w-7 h-7 rounded-full bg-white/8 cursor-pointer flex items-center justify-center shrink-0">
            <i className="iconfont icon-arrow-right-border text-white text-lg" />
          </div>
        </Link>
      ))}
    </div>
  )
}

export default ProfileFeatureList
