import { Suspense } from 'react'
import { Loader2 } from 'lucide-react'
import { lazyRetry } from '../lib/lazyRetry'

const OvertimeCalculator = lazyRetry(() => import('./money/OvertimeTab').then(m => ({ default: m.OvertimeCalculator })))

/**
 * 加班费计算独立页面
 * 从薪税管理子标签拆出，作为一级菜单项
 */
export default function Overtime() {
  return (
    <Suspense fallback={<div className="flex items-center justify-center py-12"><Loader2 className="w-5 h-5 animate-spin text-gray-400" /></div>}>
      <OvertimeCalculator />
    </Suspense>
  )
}
