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 { cn } from '@documenso/ui/lib/utils'; import { Button } from '@documenso/ui/primitives/button'; import { Header as AuthenticatedHeader } from '~/components/(dashboard)/layout/header'; import { Logo } from '~/components/branding/logo'; import type { Route } from './+types/_layout'; export function loader({ context }: Route.LoaderArgs) { const { session } = context; return { session, }; } export default function PublicProfileLayout({ loaderData }: Route.ComponentProps) { const { session } = loaderData; 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.

); }