diff --git a/components/NavLinks.js b/components/NavLinks.js
new file mode 100644
index 0000000..8525b9d
--- /dev/null
+++ b/components/NavLinks.js
@@ -0,0 +1,51 @@
+import Image from "next/image";
+import {
+ Box,
+ Divider,
+ Center,
+ Text,
+ Flex,
+ Spacer,
+ Button,
+} from "@chakra-ui/react";
+import Head from "next/head";
+import Link from "next/link";
+
+function NavLinks({ prev, next }) {
+ let prevText = next == 2 ? "Dernière" : "Précédente";
+ let nextText = next != 1 ? "Suivante" : "Retour au début";
+ return (
+
+
+
+
+
+
+
+
+ );
+}
+
+export default NavLinks;
diff --git a/pages/photos/[id].js b/pages/photos/[id].js
index 642edad..be01f18 100644
--- a/pages/photos/[id].js
+++ b/pages/photos/[id].js
@@ -13,6 +13,7 @@ import Image from "next/image";
import Head from "next/head";
import BackHome from "../../components/BackHome";
// import { getPlaiceholder } from "plaiceholder";
+import NavLinks from "../../components/NavLinks";
export async function getStaticPaths() {
const photos = await getAllPhotos();
@@ -69,10 +70,10 @@ export default function Photos({ photo, placeholder }) {
-
+
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
+
+
);
}