mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-14 13:23:13 +00:00
25 lines
656 B
TypeScript
25 lines
656 B
TypeScript
"use client";
|
|
|
|
import { Boundary } from "@/components/boundary";
|
|
import { Button } from "@/components/button";
|
|
import { useEffect } from "react";
|
|
|
|
export default function Error({ error, reset }: any) {
|
|
useEffect(() => {
|
|
console.log("logging error:", error);
|
|
}, [error]);
|
|
|
|
return (
|
|
<Boundary labels={["Login Error"]} color="red">
|
|
<div className="space-y-4">
|
|
<div className="text-sm text-red-500 dark:text-red-500">
|
|
<strong className="font-bold">Error:</strong> {error?.message}
|
|
</div>
|
|
<div>
|
|
<Button onClick={() => reset()}>Try Again</Button>
|
|
</div>
|
|
</div>
|
|
</Boundary>
|
|
);
|
|
}
|