mirror of
https://github.com/felipegcoutinho/openmonetis.git
synced 2026-06-10 07:16:01 +00:00
18 lines
459 B
TypeScript
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>
|
|
);
|
|
}
|