How can I add an js lib to my module but only if module on edit mode or pass some condition
<!-- if have admin permission --> [JavaScript:{ path: "~/Resources/Shared/scripts/manager.js"}]
<!-- else --> [JavaScript:{ path: "~/Resources/Shared/scripts/user.js"}]
<div id="Items-[ModuleContext:ModuleId]"><!-- My module content --> </div>