'use client'; import Image from 'next/image'; import Link from 'next/link'; import { motion, useReducedMotion } from 'framer-motion'; import { FaXTwitter } from 'react-icons/fa6'; import { LiaDiscord } from 'react-icons/lia'; import { LuGithub } from 'react-icons/lu'; import LogoImage from '@documenso/assets/logo.png'; import { Sheet, SheetContent } from '@documenso/ui/primitives/sheet'; export type MobileNavigationProps = { isMenuOpen: boolean; onMenuOpenChange?: (_value: boolean) => void; }; export const MENU_NAVIGATION_LINKS = [ { href: '/singleplayer', text: 'Singleplayer', }, { href: '/blog', text: 'Blog', }, { href: '/pricing', text: 'Pricing', }, { href: '/open', text: 'Open Startup', }, { href: 'https://status.documenso.com', text: 'Status', }, { href: 'mailto:support@documenso.com', text: 'Support', target: '_blank', }, { href: '/privacy', text: 'Privacy', }, { href: 'https://app.documenso.com/signin', text: 'Sign in', }, ]; export const MobileNavigation = ({ isMenuOpen, onMenuOpenChange }: MobileNavigationProps) => { const shouldReduceMotion = useReducedMotion(); const handleMenuItemClick = () => { onMenuOpenChange?.(false); }; return ( Documenso Logo {MENU_NAVIGATION_LINKS.map(({ href, text, target }) => ( handleMenuItemClick()} target={target} > {text} ))}
); };