I'm trying to migrate a relatively simple extension from the 'old' extensions (capability API) to the new Nebula.js framework. On the property panel from old extension, I'm retrieving the list of alternate states available on the app by simply doing this (querying all the app alternate states defined):
However, I cannot find how to do this with Nebula. The 'galaxy'/env passed to ext.js doesn't seem to provide any access to this kind of data.
exportdefaultfunctionext(galaxy) {
}
On the main index.js, I tried to - Import useApp from Nebula - Send that into ext.js However, the use useApp hook this way doesn't seem to be valid. It seems I can only use it within the component() function?