mirror of
https://github.com/SamyRai/turash.git
synced 2025-12-26 23:01:33 +00:00
- 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.
23 lines
524 B
TypeScript
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;
|