import { Monitor, X } from 'lucide-react';
import PropTypes from 'prop-types';

export default function LetramentoNavBar({ titulo, onClose }) {
  return (
    <div className="flex items-center justify-between p-6 border-b border-white/20">
      <div className="flex items-center space-x-3">
        <div className="w-8 h-8 bg-brand-100 rounded-full flex items-center justify-center text-brand-600">
          <Monitor className="w-5 h-5" />
        </div>
        <h3 className="text-xl font-title font-bold text-gray-800">
          {titulo}
        </h3>
      </div>
      <button
        onClick={onClose}
        className="w-8 h-8 cancel-icon bg-gray-200 hover:bg-gray-300 flex items-center justify-center text-gray-600 transition-colors"
        aria-label="Fechar atividade"
      >
        <X className="w-4 h-4" />
      </button>
    </div>
  );
}

LetramentoNavBar.propTypes = {
  titulo:  PropTypes.string.isRequired,
  onClose: PropTypes.func.isRequired,
};
