diff --git a/src/toolbar/actions.js b/src/toolbar/actions.js index 7016030..397c66d 100644 --- a/src/toolbar/actions.js +++ b/src/toolbar/actions.js @@ -1,5 +1,10 @@ import * as t from './actionTypes'; +/** + * Creates a Redux action to handle a toolbar button click. + * @param {string} id - The id of the button that was clicked. + * @returns {{type: string, id: string}} A CLICK_BUTTON action object. + */ export const clickButton = (id) => ({ type: t.CLICK_BUTTON, id