(api: TuiPluginApi)
| 108 | } |
| 109 | |
| 110 | function getSessionId(api: TuiPluginApi): string | null { |
| 111 | try { |
| 112 | const route = api.route.current |
| 113 | if (route?.name === "session" && route.params?.sessionID) { |
| 114 | return route.params.sessionID |
| 115 | } |
| 116 | } catch { |
| 117 | // ignore |
| 118 | } |
| 119 | return null |
| 120 | } |
| 121 | |
| 122 | const R = (props: { t: TuiThemeCurrent; l: string; v: string; fg?: string }) => ( |
| 123 | <box width="100%" flexDirection="row" justifyContent="space-between"> |
no outgoing calls
no test coverage detected