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

export default function CompanyPage() {
  const navigate = useNavigate();
  const { lang } = useParams({ strict: false });

  useEffect(() => {
    navigate({ to: `/${lang}/company/candidates`, replace: true });
  }, [navigate, lang]);

  return null;
}
