import { AppShell, Flex, Text, Container, Button, Box } from '@pikku/mantine/core'; import { 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'; interface CompanyLayoutProps { children: React.ReactNode; } export default function CompanyLayout({ children }: CompanyLayoutProps) { const pathname = useLocation({ select: (l) => l.pathname }); const navigate = useNavigate(); const params = useParams({ strict: false }); const t = useI18n(); const lang = params.lang as string; const isDetailPage = pathname.includes('/company/candidate/'); return ( {isDetailPage ? ( ) : (
{t('company.navigation.tagline')}
)}
{children}
); }