(label, targetRoute, currentRoute, setRoute, keyHint)
| 160 | }) |
| 161 | |
| 162 | export const createDropdownButton = (label, targetRoute, currentRoute, setRoute, keyHint) => ({ |
| 163 | type: DROPDOWN_BUTTON, |
| 164 | onClick: () => setRoute(targetRoute), |
| 165 | active: currentRoute === targetRoute, |
| 166 | label, |
| 167 | keyHint, |
| 168 | }) |
| 169 | |
| 170 | export const createDropdownSeparator = () => ({ |
| 171 | type: DROPDOWN_SEPARATOR, |