import React from "react";
import {
  Search,
  MapPin,
  Calendar,
  Bus,
  ArrowRight,
  LogIn,
  UserPlus,
  RadioTower,
  Binoculars,
  BadgePlus,
} from "lucide-react";
import { useAuth } from "../../AuthContext";
import { useTranslation } from "react-i18next";

function Gestion() {
  const { t } = useTranslation();
  return (
    <div className="min-h-screen bg-gradient-to-br from-blue-50 to-indigo-50">
      <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
        <div className="text-center mb-12">

          <h2 className="text-4xl font-bold text-gray-900 mb-4">
            {t('gestion.title')} <b>{t('gestion.moduleName')}</b>.
          </h2>
          
          <p className="text-xl text-gray-600 max-w-3xl mx-auto">
            {t('gestion.description')}
          </p>
        </div>

        <div className="grid md:grid-cols-2 gap-8">
          <div className="bg-white p-6 rounded-xl shadow-sm hover:shadow-md transition-shadow">
            <div className="w-12 h-12 bg-indigo-100 rounded-lg flex items-center justify-center mb-4">
              <RadioTower className="text-indigo-600" size={24} />
            </div>
            <h3 className="text-xl font-semibold mb-2">
              {t('gestion.consultTitle')}
            </h3>
            <p className="text-gray-600 mb-4">
              {t('gestion.consultDesc')}
            </p>
            <a
              href="/gestionObjets"
              className="flex items-center text-indigo-600 hover:text-indigo-700"
            >
              {t('gestion.exploreBtn')} <ArrowRight size={16} className="ml-2" />
            </a>
          </div>
          
          <div className="bg-white p-6 rounded-xl shadow-sm hover:shadow-md transition-shadow">
            <div className="w-12 h-12 bg-indigo-100 rounded-lg flex items-center justify-center mb-4">
              <BadgePlus className="text-indigo-600" size={24} />
            </div>
            <h3 className="text-xl font-semibold mb-2">
              {t('gestion.addTitle')}
            </h3>
            <p className="text-gray-600 mb-4">
              {t('gestion.addDesc')}
            </p>
            <a
              href="/ajouterObjet"
              className="flex items-center text-indigo-600 hover:text-indigo-700"
            >
              {t('gestion.addBtn')} <ArrowRight size={16} className="ml-2" />
            </a>
          </div>
        </div>
      </div>
    </div>
  );
}

export default Gestion;
