¿Cómo puedo importar 2 objetos con el mismo nombre pero usarlos condicionalmente en la página?
Intenté esto, pero la importación solo puede estar en la parte superior, por lo que no funciona
if (window.location.href.includes('showcase')) { import { Tags } from "../../../data/folder1"; } else { import { Tags } from "../../../data/folder2"; }Intenté también esto pero estoy atascado:
import { Tags } from "../../../data/folder1" import { Tags } from "../../../data/folder2" const PageTags = window.location.href.includes('showcase') ? Tags : Tags <=== issue here