Files
next-gdrive-index/src/components/Layout/NotFound.tsx
T
2024-05-18 15:19:07 +07:00

37 lines
914 B
TypeScript

"use client";
import { Status } from "~/components/Global";
import { Button } from "~/components/ui/button";
import useRouter from "~/hooks/usePRouter";
import { cn } from "~/utils/cn";
export default function NotFound() {
const router = useRouter();
return (
<div className={cn("mx-auto h-full w-full max-w-md", "flex flex-grow flex-col items-center justify-center gap-12")}>
<Status
icon='Frown'
message='The file you are looking for does not exist'
/>
<div className={cn("w-full", "flex flex-col items-center gap-3")}>
<Button
className='w-full'
onClick={() => router.push("/")}
>
Back to Home
</Button>
<Button
variant={"outline"}
className='w-full'
onClick={() => router.back()}
>
Back to Previous Page
</Button>
</div>
</div>
);
}