import { Trans } from '@lingui/macro'; import { ChevronLeft } from 'lucide-react'; import { Link, Outlet } from 'react-router'; import { Button } from '@documenso/ui/primitives/button'; import { Header as AuthenticatedHeader } from '~/components/(dashboard)/layout/header'; import type { Route } from './+types/_layout'; export async function loader({ context }: Route.LoaderArgs) { return { user: context.session?.user, teams: context.session?.teams || [], }; } /** * 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({ loaderData }: Route.ComponentProps) { const { user, teams } = loaderData; return (
{user && }
); } 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.

); }