import backgroundPattern from '@documenso/assets/images/background-pattern.png'; import { Outlet, useLocation } from 'react-router'; export default function Layout() { const { pathname } = useLocation(); // Todo: Use the layout params to hide instead of hardcoding the pathname. const hideBackground = pathname.includes('mobile-signature'); return (
{!hideBackground && (
background pattern
)}
); }