Files
spacedrive/interface/app/$libraryId/404.tsx
Utku b6c0b6a826 Prettier & Format (#668)
* format

* fix lint issues
2023-04-04 05:39:07 +00:00

27 lines
784 B
TypeScript

import { useNavigate } from 'react-router';
import { Button } from '@sd/ui';
export const Component = () => {
const navigate = useNavigate();
return (
<div className="w-full bg-app/80">
<div
role="alert"
className="flex h-full w-full flex-col items-center justify-center rounded-lg p-4"
>
<p className="m-3 text-sm font-semibold uppercase text-ink-faint">Error: 404</p>
<h1 className="text-4xl font-bold">There's nothing here.</h1>
<p className="mt-2 text-sm text-ink-dull">
Its likely that this page has not been built yet, if so we're on it!
</p>
<div className="flex flex-row space-x-2">
<Button variant="outline" className="mt-4" onClick={() => navigate(-1)}>
Go Back
</Button>
</div>
</div>
</div>
);
};