Skip to content

Commit ac34853

Browse files
committed
404 component not found
1 parent 7d2f820 commit ac34853

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import ghost from '../../../public/images/figures/ghost.svg?url';
2+
import { useRouter } from '@tanstack/react-router';
3+
import { Button } from '../ui/button';
4+
5+
export function NotFoundContent(props: { heading: React.ReactNode; subheading: React.ReactNode }) {
6+
const router = useRouter();
7+
8+
return (
9+
<div className="flex h-full flex-1 flex-col items-center justify-center gap-2.5 py-6">
10+
<img src={ghost} alt="Ghost illustration" width="200" height="200" className="drag-none" />
11+
<h2 className="text-xl font-bold">{props.heading}</h2>
12+
<h3 className="font-semibold">{props.subheading}</h3>
13+
<Button variant="secondary" className="mt-2" onClick={router.history.back}>
14+
Go back
15+
</Button>
16+
</div>
17+
);
18+
}

0 commit comments

Comments
 (0)