'use client'; import React, { useEffect, useState } from 'react'; import { usePathname } from 'next/navigation'; import { cn } from '@documenso/ui/lib/utils'; import { Footer } from '~/components/(marketing)/footer'; import { Header } from '~/components/(marketing)/header'; export type MarketingLayoutProps = { children: React.ReactNode; }; export default function MarketingLayout({ children }: MarketingLayoutProps) { const [scrollY, setScrollY] = useState(0); const pathname = usePathname(); useEffect(() => { const onScroll = () => { setScrollY(window.scrollY); }; window.addEventListener('scroll', onScroll); return () => window.removeEventListener('scroll', onScroll); }, []); return (