"use client"; import React from "react"; import { AlertCircle } from "lucide-react"; export interface ErrorMessageProps { message?: string | null; className?: string; style?: React.CSSProperties; /** Whether to show the danger indicator icon */ showIcon?: boolean; } /** * EasyUI-inspired Form Error Message. * Displays input validation errors with subtle shake and danger tone. */ export function ErrorMessage({ message, className = "", style, showIcon = true, }: ErrorMessageProps) { if (!message) return null; return (