import { FC, Fragment } from 'react' import { useTranslation } from 'react-i18next' import { useGetRealInfo } from '../../financial/hooks/useFinancialData' const RealInfo: FC = () => { const { t } = useTranslation('global') const { data: d } = useGetRealInfo() const data = d?.data?.realUser return (
{t('receip.type_person')}
{t('receip.real_person')}
{t('receip.fullName')}
{data?.firstName + ' ' + data?.lastName}
{t('financial.father_name')}
{data?.fatherName}
{t('financial.sex')}
{data?.gender === 'MALE' ? 'مرد' : 'زن'}
{t('financial.phone')}
{data?.phone}
{t('receip.postal_code')}
{data?.address?.postalCode}
{t('receip.state')}
{data?.address?.city?.province?.name}
{t('receip.city')}
{data?.address?.city?.name}
{t('receip.address')}
{data?.address?.fullAddress}
) } export default RealInfo