( modesByPath: PaneModesByPath, path: string | null )
| 6 | export type PaneModesByPath = Record<string, PaneMode> |
| 7 | |
| 8 | export function paneModeForPath( |
| 9 | modesByPath: PaneModesByPath, |
| 10 | path: string | null |
| 11 | ): PaneMode { |
| 12 | return path ? modesByPath[path] ?? DEFAULT_PANE_MODE : DEFAULT_PANE_MODE |
| 13 | } |
| 14 | |
| 15 | export function paneModesWithPathMode( |
| 16 | modesByPath: PaneModesByPath, |
no outgoing calls
no test coverage detected