mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-11 10:47:27 +03:00
19 lines
672 B
TypeScript
19 lines
672 B
TypeScript
import { FC, PropsWithChildren } from 'react';
|
|
import { Link } from 'react-router-dom';
|
|
import { SimpleCard } from '../utils/SimpleCard';
|
|
|
|
type NotFoundProps = PropsWithChildren<{ to?: string }>;
|
|
|
|
export const NotFound: FC<NotFoundProps> = ({ to = '/', children = 'Home' }) => (
|
|
<div className="home">
|
|
<SimpleCard className="p-4">
|
|
<h2>Oops! We could not find requested route.</h2>
|
|
<p>
|
|
Use your browser's back button to navigate to the page you have previously come from, or just press this
|
|
button.
|
|
</p>
|
|
<br />
|
|
<Link to={to} className="btn btn-outline-primary btn-lg">{children}</Link>
|
|
</SimpleCard>
|
|
</div>
|
|
);
|