import { Trans } from '@lingui/react/macro'; import { ChevronLeft } from 'lucide-react'; import { Link, Outlet } from 'react-router'; import { useOptionalSession } from '@documenso/lib/client-only/providers/session'; import { Button } from '@documenso/ui/primitives/button'; import { Header as AuthenticatedHeader } from '~/components/general/app-header'; /** * A layout to handle scenarios where the user is a recipient of a given resource * where we do not care whether they are authenticated or not. * * Such as direct template access, or signing. */ export default function RecipientLayout() { const { sessionData } = useOptionalSession(); return (
{sessionData?.user && ( )}
); } // Todo: (RR7) Use generic error boundary. export function ErrorBoundary() { return (

404 Not found

Oops! Something went wrong.

The resource you are looking for may have been disabled, deleted or may have never existed.

); }