|
@@ -13,21 +13,6 @@ export { abstractMapStateToProps } from './functions.native';
|
13
|
13
|
|
14
|
14
|
/* eslint-disable flowtype/space-before-type-colon */
|
15
|
15
|
|
16
|
|
-/**
|
17
|
|
- * Returns the button object corresponding to the given buttonName.
|
18
|
|
- *
|
19
|
|
- * @param {string} buttonName - The name of the button.
|
20
|
|
- * @param {Object} state - The current state.
|
21
|
|
- * @returns {Object} - The button object.
|
22
|
|
- */
|
23
|
|
-export function getButton(buttonName: string, state: Object) {
|
24
|
|
- const { primaryToolbarButtons, secondaryToolbarButtons }
|
25
|
|
- = state['features/toolbox'];
|
26
|
|
-
|
27
|
|
- return primaryToolbarButtons.get(buttonName)
|
28
|
|
- || secondaryToolbarButtons.get(buttonName);
|
29
|
|
-}
|
30
|
|
-
|
31
|
16
|
/**
|
32
|
17
|
* Takes toolbar button props and maps them to HTML attributes to set.
|
33
|
18
|
*
|