mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-28 18:59:24 -06:00
* Moved billing page to RSC * removed unused props * ran pnpm format * fix build error * add 404 page, throw 404 on billing page when !IS_FORMBRICKS_CLOUD --------- Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
25 lines
636 B
TypeScript
25 lines
636 B
TypeScript
"use client"; // Error components must be Client components
|
|
|
|
import { Button, ErrorComponent } from "@formbricks/ui";
|
|
|
|
export default function Error({ error, reset }: { error: Error; reset: () => void }) {
|
|
if (process.env.NODE_ENV === "development") {
|
|
console.log(error);
|
|
}
|
|
|
|
return (
|
|
<div className="flex h-full w-full flex-col items-center justify-center">
|
|
<ErrorComponent />
|
|
<Button
|
|
variant="secondary"
|
|
onClick={
|
|
// Attempt to recover by trying to re-render the segment
|
|
() => reset()
|
|
}
|
|
className="mt-2">
|
|
Try again
|
|
</Button>
|
|
</div>
|
|
);
|
|
}
|