This commit is contained in:
2026-06-06 17:00:22 +03:00
parent 0b2425f506
commit 5adb1e807b
5 changed files with 107 additions and 1 deletions

View File

@@ -1,9 +1,15 @@
import { useMe } from '@features/auth'
import { Spinner } from '@shared/ui'
import { ConverterSection } from '@widgets/converter-page'
import { LegalConverterPage } from './LegalConverterPage'
export function ConverterPage() {
const { data } = useMe()
const { data, isLoading } = useMe()
if (isLoading) {
return <Spinner fullscreen size="lg" label="Загрузка данных аккаунта" />
}
const isLegal = !!data && data.account_type !== 'individual'
return isLegal ? <LegalConverterPage /> : <ConverterSection />
}