SurfaceRouter
SurfaceRouter(
props
):Element
Conditionally renders components based on which surface the extension UI is currently rendering for the user.
In general, every extension should include exactly one SurfaceRouter
component, and you should
only include one SurfaceRoute
from the
Surfaces
enum.
Parameters
Parameter | Type | Description |
---|---|---|
props | SurfaceRouterProps |
Returns
Element