diff --git a/src/components/footer.js b/src/components/footer.js index d910802..626eabf 100644 --- a/src/components/footer.js +++ b/src/components/footer.js @@ -2,9 +2,19 @@ import React from "react" import footerStyles from "./footer.module.css" import { Link } from "gatsby" -export default () => ( +export default ({ editLink }) => (
+ {editLink ? ( + + Seite bearbeiten + + ) : null} Impressum diff --git a/src/components/layout.js b/src/components/layout.js index 776a734..75fbd5a 100644 --- a/src/components/layout.js +++ b/src/components/layout.js @@ -3,10 +3,10 @@ import Nav from "../components/nav" import Footer from "../components/footer" import layoutStyles from "./layout.module.css" -export default ({ children }) => ( +export default ({ editLink, children }) => ( <>