import dynamic from 'next/dynamic'

import { AdminRouteLoadingCard } from '../../[locale]/dashboard/_shared/route-loading-card'

const AdminAiWorkbenchShell = dynamic(
  () =>
    import('../../[locale]/dashboard/ai/_ai/ai-workbench-shell').then(
      (module) => module.AdminAiWorkbenchShell,
    ),
  {
    loading: () => <AdminRouteLoadingCard message="正在加载 AI 工作台..." />,
  },
)

export default function AdminAiWorkbenchPage() {
  return <AdminAiWorkbenchShell locale="zh" />
}
