You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
386 B
15 lines
386 B
import { useLocation } from "react-router-dom"
|
|
import { BASE } from "../Constants.ts"
|
|
export default function NotFoundPage() {
|
|
const target = useLocation()
|
|
|
|
return (
|
|
<div>
|
|
<h1>{target.pathname} NOT FOUND !</h1>
|
|
<button onClick={() => (location.pathname = BASE + "/")}>
|
|
go back to home
|
|
</button>
|
|
</div>
|
|
)
|
|
}
|