()
| 63 | const transitionName = `accordion-window-item-${id}`; |
| 64 | |
| 65 | const toggleTabs = () => { |
| 66 | startTransition(() => { |
| 67 | addTransitionType(EXPAND_ACCORDION_TRANSITION); |
| 68 | const nextState = new Set(tabsOpen); |
| 69 | if (nextState.has(name)) { |
| 70 | nextState.delete(name); |
| 71 | } else { |
| 72 | nextState.add(name); |
| 73 | } |
| 74 | setTabsOpen(nextState); |
| 75 | }); |
| 76 | }; |
| 77 | |
| 78 | // Replace spaces with non-breaking spaces |
| 79 | const displayName = name.replace(/ /g, '\u00A0'); |
nothing calls this directly
no test coverage detected