mirror of
https://github.com/nimbusdotstorage/Nimbus
synced 2026-04-22 17:45:03 +02:00
12 lines
377 B
TypeScript
12 lines
377 B
TypeScript
import { Button } from "@/components/ui/button";
|
|
import { parseError } from "@/utils/error";
|
|
|
|
export function ErrorMessageWithRetry({ error, retryFn }: { error: unknown; retryFn: () => void }) {
|
|
return (
|
|
<div className="flex flex-1 flex-col items-center justify-center space-y-2">
|
|
<p>{parseError(error)}</p>
|
|
<Button onClick={retryFn}>Try again</Button>
|
|
</div>
|
|
);
|
|
}
|