import React from "react";
import { Battery } from "lucide-react";
import Progress from "react-circle-progress-bar";
import { useTranslation } from "react-i18next";

function BatterieInfo({ object }) {
  const { t } = useTranslation();
  return (
    <div key={object.id} className="bg-white p-6 rounded-xl min-w-5xl">
      <div className="flex align-items gap-6">
        <div className="w-12 h-12 bg-indigo-100 rounded-lg flex items-center justify-center mb-4">
          <Battery className="text-indigo-600" size={24} />
        </div>
        <h1 className="text-black text-2xl font-bold mb-1  ">
          {t('components.batterieInfo.title')}
        </h1>
      </div>
      <div className="flex flex-col items-center">
        <Progress progress={object.batterie} />
        <h1 className="font-bold">
          {t('components.batterieInfo.batteryType')}{" "}
          <span className="capitalize font-normal">{object.type_batterie}</span>
        </h1>
      </div>
    </div>
  );
}

export default BatterieInfo;
