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

export function useVNGFieldsScheme(): IDocsSchemaType[] {
    return [
        {
            name: 'number',
            label: uiKitI18n?.global.t('moduleDocuments.forms.residence_permit.number.label'),
            type: EInputType.text,
            placeholder: '__ _______',
            validateOnChange: false,
            validator: getVngValidator(),
            isShowClear: true,
            components: EInputComponentType.input,
        },
    ];
}
