import { AppShell, Flex, Button, Box, Container } from '@pikku/mantine/core'; import '@/styles/datatable.css'; import { Link, useLocation, useNavigate, useParams } from '@tanstack/react-router'; import { IconArrowLeft } from '@tabler/icons-react'; import LanguageSelector from '@/components/ui/LanguageSelector'; import Logo from '@/components/ui/Logo'; import { useI18n } from '@/context/i18n-provider'; import { asI18n } from '@pikku/react'; interface BackOfficeLayoutProps { children: React.ReactNode; } export default function BackOfficeLayout({ children }: BackOfficeLayoutProps) { const t = useI18n(); const pathname = useLocation({ select: (l) => l.pathname }); const navigate = useNavigate(); const params = useParams({ strict: false }); const lang = params.lang as string; const isDetailPage = pathname.includes('/backoffice/candidate/'); // Don't apply AppShell to auth pages if (pathname.includes('/backoffice/auth')) { return <>{children}; } return ( {isDetailPage ? ( ) : ( )} {children} ); }