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

export function useVUFieldsScheme(): IDocsSchemaType[] {
    return [
        {
            name: 'number',
            label: uiKitI18n?.global.t('moduleDocuments.forms.vu.vu.label'),
            type: EInputType.text,
            placeholder: '__ __ ______',
            validateOnChange: false,
            validator: geVUValidator(),
            mask: '## FF ######',
            isShowClear: true,
            components: EInputComponentType.mask,
        },
    ];
}
