/* 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(