turash/bugulma/frontend/components/ui/ErrorMessage.tsx
Damir Mukimov 6347f42e20
Consolidate repositories: Remove nested frontend .git and merge into main repository
- Remove nested git repository from bugulma/frontend/.git
- Add all frontend files to main repository tracking
- Convert from separate frontend/backend repos to unified monorepo
- Preserve all frontend code and development history as tracked files
- Eliminate nested repository complexity for simpler development workflow

This creates a proper monorepo structure with frontend and backend
coexisting in the same repository for easier development and deployment.
2025-11-25 06:02:57 +01:00

23 lines
524 B
TypeScript

import { XCircle } from 'lucide-react';
interface ErrorMessageProps {
message: string;
className?: string;
}
const ErrorMessage = ({ message, className = '' }: ErrorMessageProps) => {
if (!message) return null;
return (
<div
className={`p-3 rounded-md bg-destructive/10 text-destructive text-sm flex items-start gap-2 ${className}`}
role="alert"
>
<XCircle className="h-4 mt-0.5 shrink-0 text-current w-4" />
<span>{message}</span>
</div>
);
};
export default ErrorMessage;