
import React from "react";

interface RegisterErrorDisplayProps {
  error: string | null;
}

const RegisterErrorDisplay: React.FC<RegisterErrorDisplayProps> = ({ error }) => {
  if (!error) return null;

  return (
    <div className="p-3 bg-red-50 border border-red-200 rounded-md text-red-700 text-sm">
      <p>{error}</p>
    </div>
  );
};

export default RegisterErrorDisplay;
