<div class="importcsv">
    <?= $block->getBlockHtml("formkey"); ?>
    <input type="hidden" name="importurl" id="importurl" value="<?=  $block->getAjaxUrl(); ?>"/>
    <input type="file" id="preselectcsvfile" name="preselectcsvfile" accept=".csv">
    <br>
    <a class="example_csv" href="<?= $block->getExampleCsvPath(); ?>">Example csv</a>
    <label for="preselectcsvfile" generated="true" class="mage-error" style="display:none" id="preselectcsvfile-error"></label>
    <br>
    <?= $block->getButtonHtml(); ?>

    <div class="preselectmessage">
    </div>
    <div class="preselecterrortable">
    </div>
</div>
<div data-mage-init='{"import": {"message": "import"}}'>
</div>