Files
openmonetis/src/features/auth/components/auth-error-alert.tsx
2026-03-12 19:22:50 +00:00

18 lines
459 B
TypeScript

import { RiTerminalLine } from "@remixicon/react";
import { Alert, AlertDescription } from "@/shared/components/ui/alert";
interface AuthErrorAlertProps {
error: string;
}
export function AuthErrorAlert({ error }: AuthErrorAlertProps) {
if (!error) return null;
return (
<Alert className="mt-2 border border-destructive" variant="destructive">
<RiTerminalLine className="h-4 w-4" />
<AlertDescription>{error}</AlertDescription>
</Alert>
);
}