export default function ErrorMessage({ message, type = "error" }) {
  if (!message) return null;

  const className = type === "success" ? "success-message" : "error-message";

  return <p className={className}>{message}</p>;
}
