File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
packages/web/app/src/components/common Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments