From 0b63568afd4bafb83164976e51a23d3c379a8580 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Tue, 24 May 2022 16:47:48 +0200
Subject: chore: add a search form on 404 page

---
 src/pages/404.tsx | 9 +++++++++
 1 file changed, 9 insertions(+)

(limited to 'src/pages/404.tsx')

diff --git a/src/pages/404.tsx b/src/pages/404.tsx
index fd7187a..c3a5cac 100644
--- a/src/pages/404.tsx
+++ b/src/pages/404.tsx
@@ -1,4 +1,5 @@
 import Link from '@components/atoms/links/link';
+import SearchForm from '@components/organisms/forms/search-form';
 import LinksListWidget from '@components/organisms/widgets/links-list-widget';
 import { getLayout } from '@components/templates/layout/layout';
 import PageLayout from '@components/templates/page/page-layout';
@@ -116,6 +117,14 @@ const Error404Page: NextPageWithLayout<Error404PageProps> = ({
         ]}
       >
         {body}
+        <p>
+          {intl.formatMessage({
+            defaultMessage: 'You can also try a search:',
+            description: 'Error404Page: try a search message',
+            id: 'XKy7rx',
+          })}
+        </p>
+        <SearchForm hideLabel={true} searchPage="/recherche/" />
       </PageLayout>
     </>
   );
-- 
cgit v1.2.3

