'use client'; import Image from 'next/image'; import Link from 'next/link'; import { motion, useReducedMotion } from 'framer-motion'; import { Github, MessagesSquare, Twitter } from 'lucide-react'; import { Sheet, SheetContent } from '@documenso/ui/primitives/sheet'; export type MobileNavigationProps = { isMenuOpen: boolean; onMenuOpenChange?: (_value: boolean) => void; }; export const MENU_NAVIGATION_LINKS = [ { href: '/blog', text: 'Blog', }, { href: '/pricing', text: 'Pricing', }, { href: 'https://status.documenso.com', text: 'Status', }, { href: 'mailto:support@documenso.com', text: 'Support', }, { href: '/privacy', text: 'Privacy', }, { href: 'https://app.documenso.com/login', 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 }) => ( handleMenuItemClick()} > {text} ))}
); };