Override 2 CMS components in main plugin theme

Hello All,

I have problem with override more than 1 CMS component in my plugin theme. I would like to have something like this:

import template1 from './extension/test1.html.twig';
Component.override('sw-cms-el-config-image-slider', {
    template
});


import template2 from './extension/test2.html.twig';
Component.override('sw-cms-block-image-text-gallery', {
    template2 
});

 

I tried:

import {template as templareTest} from "./test.html.twig"
Component.override('sw-cms-el-config-image-slider', {
    templareTest
});

Thanks in advance