( storyId: string | null | undefined, )
| 193 | }; |
| 194 | |
| 195 | const getPageSelectionForStory = ( |
| 196 | storyId: string | null | undefined, |
| 197 | ): PageSelection | undefined => { |
| 198 | if (!storyId) { |
| 199 | return undefined; |
| 200 | } |
| 201 | |
| 202 | for (const mode of allShowcaseModes) { |
| 203 | for (const page of mode.pages) { |
| 204 | if (getShowcasePageStoryIds(page).includes(storyId)) { |
| 205 | return { mode, page }; |
| 206 | } |
| 207 | } |
| 208 | } |
| 209 | |
| 210 | return undefined; |
| 211 | }; |
| 212 | |
| 213 | const getPageSelection = ({ |
| 214 | pageId, |
no test coverage detected