/* eslint-disable no-undef */ import React from "react"; import PropTypes from "prop-types"; import { Trans, Link, useTranslation } from "gatsby-plugin-react-i18next"; import { createPortal } from "react-dom"; import * as styles from "./navigation.module.scss"; import { X } from "lucide-react"; const OffScreenNav = ({ active, close }) => { const { t } = useTranslation(); if (typeof document === "undefined") return <>; return createPortal(
menu home.title about.title project.plural social.title blog.title
, document.getElementById("osnav") ); }; OffScreenNav.propTypes = { close: PropTypes.func.isRequired, active: PropTypes.bool.isRequired, }; export default OffScreenNav;