import React, { type ReactNode } from 'react';
import './ErrorMessage.css';

function ErrorMessage({ children }: { children: ReactNode }) {
  return (
    <div className="error" role="alert">
      {children}
    </div>
  );
}

export default ErrorMessage;
