|
7 | 7 |
|
8 | 8 | 'use client'; |
9 | 9 |
|
10 | | -import {MDXComponents} from 'components/MDX/MDXComponents'; |
| 10 | +import PageHeading from 'components/PageHeading'; |
| 11 | +import Intro from 'components/MDX/Intro'; |
| 12 | +import Link from 'components/MDX/Link'; |
| 13 | +import {getRouteMeta} from './getRouteMeta'; |
| 14 | +import type {RouteItem} from './getRouteMeta'; |
11 | 15 |
|
12 | | -const {Intro, MaxWidth, p: P, a: A} = MDXComponents; |
13 | | - |
14 | | -export function NotFoundContent() { |
| 16 | +export function NotFoundContent({ |
| 17 | + routeTree, |
| 18 | + sectionPath, |
| 19 | +}: { |
| 20 | + routeTree: RouteItem; |
| 21 | + sectionPath: string; |
| 22 | +}) { |
| 23 | + const {breadcrumbs} = getRouteMeta(sectionPath, routeTree); |
15 | 24 | return ( |
16 | 25 | <main className="min-w-0 isolate"> |
17 | 26 | <article className="font-normal break-words text-primary dark:text-primary-dark"> |
18 | | - <div className="px-5 sm:px-12"> |
19 | | - <div className="max-w-7xl mx-auto"> |
20 | | - <MaxWidth> |
| 27 | + <div className="ps-0"> |
| 28 | + <div> |
| 29 | + <PageHeading title="Not Found" breadcrumbs={breadcrumbs} /> |
| 30 | + </div> |
| 31 | + <div className="px-5 sm:px-12"> |
| 32 | + <div className="max-w-7xl mx-auto"> |
21 | 33 | <Intro> |
22 | | - <P>This page doesn’t exist.</P> |
23 | | - <P> |
24 | | - If this is a mistake{', '} |
25 | | - <A href="https://github.com/reactjs/react.dev/issues/new"> |
| 34 | + <p>This page doesn’t exist.</p> |
| 35 | + <p> |
| 36 | + If this is a mistake,{' '} |
| 37 | + <Link href="https://github.com/reactjs/react.dev/issues/new"> |
26 | 38 | let us know |
27 | | - </A> |
28 | | - {', '} |
29 | | - and we will try to fix it! |
30 | | - </P> |
| 39 | + </Link> |
| 40 | + , and we will try to fix it! |
| 41 | + </p> |
31 | 42 | </Intro> |
32 | | - </MaxWidth> |
| 43 | + </div> |
33 | 44 | </div> |
34 | 45 | </div> |
35 | 46 | </article> |
|
0 commit comments