Files
sendou.ink/app/features/scanner/components/NotFound.tsx
2026-10-03 19:57:48 +03:00

21 lines
591 B
TypeScript

/** A view whose session or VoD is no longer in the local store. */
import type * as React from "react";
import { Link } from "react-router";
import { SCANNER_PAGE } from "~/utils/urls";
import { scannerSearchParams } from "../scanner-search-params";
import styles from "./NotFound.module.css";
export function NotFound({ children }: { children: React.ReactNode }) {
return (
<div className={styles.notFound}>
<p>{children}</p>
<Link
to={scannerSearchParams.href(SCANNER_PAGE, {})}
defaultShouldRevalidate={false}
>
← Back to the scanner
</Link>
</div>
);
}