'use client';

import { useParams, useRouter } from '@/framework/navigation';
import { useEffect } from 'react';

export default function BackOfficeDashboardPage() {
  const router = useRouter()
  const { lang } = useParams<{ lang?: string }>()
  useEffect(() => {
    router.replace(`/${lang || 'en'}/backoffice/candidates`)
  }, [lang, router])
  return null
}
