import { EInputComponentType, EInputType } from '@/UI-kit/types';
import { getMedicalBookValidator } from '@/modules/documents/constants';
import { IDocsSchemaType } from '@/modules/form/types';
import { uiKitI18n } from '@/configs';

export function useMedicalBookFieldsScheme(): IDocsSchemaType[] {
    return [
        {
            name: 'number',
            label: uiKitI18n?.global.t('moduleDocuments.forms.medical_book.number.label'),
            type: EInputType.text,
            placeholder: '57221831',
            validateOnChange: false,
            validator: getMedicalBookValidator(),
            mask: '########',
            isShowClear: true,
            components: EInputComponentType.mask,
        },
    ];
}
