import { useNavigate, useParams } from '@tanstack/react-router';
import { useEffect } from 'react';

export default function BackOfficeDashboardPage() {
  const navigate = useNavigate()
  const { lang } = useParams({ strict: false }) as { lang?: string }
  useEffect(() => {
    navigate({ to: `/${lang || 'en'}/backoffice/candidates`, replace: true })
  }, [lang, navigate])
  return null
}
