This is an extension of https://github.com/hypothesis/lms/pull/6342, but defining a way to pass a map of route -> module that avoids the use of multiple useRoute calls, and decouples the logic with the dashboard, as this map could be passed as a prop.
It also replaces dynamic imports with static ones.
This is an extension of https://github.com/hypothesis/lms/pull/6342, but defining a way to pass a map of
route -> module
that avoids the use of multipleuseRoute
calls, and decouples the logic with the dashboard, as this map could be passed as a prop.It also replaces dynamic imports with static ones.