"use client";
import { RootState } from "@/store/store";
import { useTranslations } from "next-intl";
import React from "react";
import { useSelector } from "react-redux";

const WalletBalance = () => {
  const { balance } = useSelector((state: RootState) => state.ProfileConfig);
  const t = useTranslations();
  return (
    <span className=" py-1 bg-greynormal whitespace-nowrap text-xs sm:text-sm font-bold px-2 rounded-xl">
      {balance || "00"} {t("Text.IQ")}
    </span>
  );
};


export default WalletBalance;
