import { useEffect, useState } from 'react'; import { Trans } from '@lingui/macro'; import { PlusIcon } from 'lucide-react'; import { ChevronLeft } from 'lucide-react'; import { Link, Outlet } from 'react-router'; import LogoIcon from '@documenso/assets/logo_icon.png'; import { useSession } from '@documenso/lib/client-only/providers/session'; import { cn } from '@documenso/ui/lib/utils'; import { Button } from '@documenso/ui/primitives/button'; import { Header as AuthenticatedHeader } from '~/components/general/app-header'; import { BrandingLogo } from '~/components/general/branding-logo'; export default function PublicProfileLayout() { const session = useSession(); const [scrollY, setScrollY] = useState(0); useEffect(() => { const onScroll = () => { setScrollY(window.scrollY); }; window.addEventListener('scroll', onScroll); return () => window.removeEventListener('scroll', onScroll); }, []); return (
{session ? ( ) : (
5 && 'border-b-border', )} >
Documenso Logo

Want your own public profile? Like to have your own public profile with agreements?

)}
); } // Todo: Test export function ErrorBoundary() { return (

404 Profile not found

Oops! Something went wrong.

The profile you are looking for could not be found.

); }