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.

constants.js 545B

12345678910111213141516171819
  1. // @flow
  2. import { MEDIA_TYPE, type MediaType } from '../base/media/constants';
  3. /**
  4. * Mapping between a media type and the witelist reducer key.
  5. */
  6. export const MEDIA_TYPE_TO_WHITELIST_STORE_KEY: {[key: MediaType]: string} = {
  7. [MEDIA_TYPE.AUDIO]: 'audioWhitelist',
  8. [MEDIA_TYPE.VIDEO]: 'videoWhitelist'
  9. };
  10. /**
  11. * Mapping between a media type and the pending reducer key.
  12. */
  13. export const MEDIA_TYPE_TO_PENDING_STORE_KEY: {[key: MediaType]: string} = {
  14. [MEDIA_TYPE.AUDIO]: 'pendingAudio',
  15. [MEDIA_TYPE.VIDEO]: 'pendingVideo'
  16. };