'use client'

import dynamic from 'next/dynamic'

// Динамический импорт клиентского компонента без SSR
const DashboardClient = dynamic(() => import('./DashboardClient'), {
  ssr: false,
  loading: () => (
    <div className="d-flex justify-content-center align-items-center min-vh-100">
      <div className="text-center">
        <div className="spinner-border text-primary" role="status">
          <span className="visually-hidden">Загрузка...</span>
        </div>
        <p className="mt-3">Загрузка дашборда...</p>
      </div>
    </div>
  )
})

export default function DashboardPage() {
  return <DashboardClient />
}
