At the moment, the toolbar (or bottom bar) only shows the terminal icon. We should make it easy to extend this with local tools bound to specific routes or currently active components.
The optimal solution from the usage perspective would be to have a wrapper component which automatically renders children into the toolbar.
I think this could be done using portals and the current toolbar component as reference. We will most likely need a context provider for the toolbar but there might be an easier way to implement this as we only need to share the reference to the toolbar div.
function ToolbarWrapper(children){
return {createPortal(
children,
refToToolbar
)}
}
At the moment, the toolbar (or bottom bar) only shows the terminal icon. We should make it easy to extend this with local tools bound to specific routes or currently active components.
The optimal solution from the usage perspective would be to have a wrapper component which automatically renders children into the toolbar.
I think this could be done using portals and the current toolbar component as reference. We will most likely need a context provider for the toolbar but there might be an easier way to implement this as we only need to share the reference to the toolbar div.