mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-02 13:51:48 +00:00
17 lines
594 B
TypeScript
17 lines
594 B
TypeScript
import { Button } from '@shlinkio/shlink-frontend-kit';
|
|
import type { FC, PropsWithChildren } from 'react';
|
|
import { ErrorLayout } from './ErrorLayout';
|
|
|
|
type NotFoundProps = PropsWithChildren<{ to?: string }>;
|
|
|
|
export const NotFound: FC<NotFoundProps> = ({ to = '/', children = 'Home' }) => (
|
|
<ErrorLayout title="Oops! We could not find requested route.">
|
|
<p>
|
|
Use your browser's back button to navigate to the page you have previously come from, or just press this
|
|
button.
|
|
</p>
|
|
<br />
|
|
<Button inline to={to} size="lg">{children}</Button>
|
|
</ErrorLayout>
|
|
);
|