import React from 'react';

const TeacherLabel = ({ nom, prenom, index }) => {
  return (
    <div
      key={index}
      className={`ml-2 px-3 py-1 rounded-md shadow-sm ${
        index % 2 === 0 ? 'bg-white' : 'bg-gray-100'
      } border border-gray-200 text-gray-700`}
    >
      <span className="font-bold">
        {nom} {prenom}
      </span>
    </div>
  );
};

export default TeacherLabel;
