You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

actions.js 716B

12345678910111213141516171819202122232425262728293031
  1. import { HIDE_RECORDING_LABEL, RECORDING_STATE_UPDATED } from './actionTypes';
  2. /**
  3. * Hides any displayed recording label, regardless of current recording state.
  4. *
  5. * @returns {{
  6. * type: HIDE_RECORDING_LABEL
  7. * }}
  8. */
  9. export function hideRecordingLabel() {
  10. return {
  11. type: HIDE_RECORDING_LABEL
  12. };
  13. }
  14. /**
  15. * Updates the redux state for the recording feature.
  16. *
  17. * @param {Object} recordingState - The new state to merge with the existing
  18. * state in redux.
  19. * @returns {{
  20. * type: RECORDING_STATE_UPDATED,
  21. * recordingState: Object
  22. * }}
  23. */
  24. export function updateRecordingState(recordingState = {}) {
  25. return {
  26. type: RECORDING_STATE_UPDATED,
  27. recordingState
  28. };
  29. }