(darkTheme, themeColors)
| 51349 | var _sanddanceExplorer = require("@msrvida/sanddance-explorer"); |
| 51350 | var _react = require("react"); |
| 51351 | function getViewerOptions(darkTheme, themeColors) { |
| 51352 | const colors = themeColors && themeColors[darkTheme ? "dark" : "light"]; |
| 51353 | const viewerOptions = { |
| 51354 | colors: Object.assign(Object.assign({}, (0, _sanddanceExplorer.getColorSettingsFromThemePalette)((0, _sanddanceExplorer.themePalettes)[darkTheme ? "dark-theme" : ""])), colors) |
| 51355 | }; |
| 51356 | return viewerOptions; |
| 51357 | } |
| 51358 | function getSnapshotFromHash() { |
| 51359 | const hash = document.location.hash && document.location.hash.substring(1); |
| 51360 | if (hash) try { |
no outgoing calls
no test coverage detected