RJBULK-APP/components/back-button.tsx

21 lines
477 B
TypeScript

"use client";
import { Button } from "@/components/ui/button";
import { ArrowLeft } from "lucide-react";
/**
* Tiny client component for the 404 "Go back" button. Kept separate so the
* NotFound page itself can stay a Server Component (it calls getAuth()).
*/
export function BackButton() {
return (
<Button
variant="outline"
size="lg"
onClick={() => history.back()}
>
<ArrowLeft className="h-4 w-4" />
Go back
</Button>
);
}