🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
"use client";
import { AlertCircle } from "lucide-react";
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
interface AuthErrorProps {
error?: string;
title?: string;
}
export function AuthError({ error, title = "Error" }: AuthErrorProps) {
if (!error) return null;
return (
<Alert variant="destructive">
<AlertCircle className="h-4 w-4" />
<AlertTitle>{title}</AlertTitle>
<AlertDescription>{error}</AlertDescription>
</Alert>
);
}