Я хочу экспортировать из адреса, и этот адрес является строкой в переменной.
import {device} from 'device.js'
let buttonUrl;
if(device.desktop){
buttonUrl = './components/Elements/Button/Button'
}
else if(device.mobile || device.tablet){
buttonUrl = './components/Elements/Button/ButtonMobile'
}
export {
Button,
} from buttonUrl
Я получаю сообщение об ошибке для части экспорта.