export default function FinishToolbar({ webmailUrl, adminUrl, pending, onFinish }) {
  return (
    <div className="wcl-finish-actions">
      {pending && (
        <p className="wcl-finish-actions__hint" role="status">
          Ativando webmail em segundo plano…
        </p>
      )}
      <div className="wcl-finish-actions__row">
        <a
          href={webmailUrl}
          className="wcl-finish-chip wcl-finish-chip--primary"
          target="_blank"
          rel="noopener noreferrer"
        >
          Abrir webmail
        </a>
        <a
          href={adminUrl}
          className="wcl-finish-chip"
          target="_blank"
          rel="noopener noreferrer"
        >
          Portal de gerenciamento
        </a>
        <button type="button" className="wcl-finish-chip" onClick={onFinish}>
          Finalizar
        </button>
      </div>
    </div>
  )
}
