import { useMe } from '@features/auth'
import { ProfileDetails } from '@widgets/profile'
import { Spinner } from '@shared/ui'

// «Данные профиля» — default dashboard item. Shows a spinner while the profile
// data is still loading, then the details form.
export function ProfileDetailsItem() {
  const { isLoading } = useMe()
  if (isLoading) return <Spinner fullscreen label="Загрузка" />
  return <ProfileDetails />
}
