
                    validators: [{ validate: 'required' }],
                  },
                ],
              },
            ],
            onDataColumnsMapped: (dataColumns) => {
              console.log('Data columns mapped:', dataColumns);
              return dataColumns;
            },
            onComplete: onComplete,
            preventUploadOnValidationErrors: true,
          });
        } catch (error) {
          console.error('Error calling renderImporter:', error);
        }
      });
  