box-ui-elements-mlh
Version:
45 lines (41 loc) • 1.74 kB
JavaScript
// @flow
import messages from './messages';
import { DOWNLOAD_CONTROL, MANAGED_USERS_ACCESS_LEVEL } from '../constants';
const { DESKTOP, MOBILE, WEB } = DOWNLOAD_CONTROL;
const { OWNERS_AND_COOWNERS, OWNERS_COOWNERS_AND_EDITORS } = MANAGED_USERS_ACCESS_LEVEL;
const downloadRestrictionsMessageMap = {
[ ]: {
externalAllowed: {
[ ]: messages.desktopDownloadOwners,
[ ]: messages.desktopDownloadOwnersEditors,
},
externalRestricted: {
[ ]: messages.desktopDownloadExternalOwners,
[ ]: messages.desktopDownloadExternalOwnersEditors,
default: messages.desktopDownloadExternal,
},
},
[ ]: {
externalAllowed: {
[ ]: messages.mobileDownloadOwners,
[ ]: messages.mobileDownloadOwnersEditors,
},
externalRestricted: {
[ ]: messages.mobileDownloadExternalOwners,
[ ]: messages.mobileDownloadExternalOwnersEditors,
default: messages.mobileDownloadExternal,
},
},
[ ]: {
externalAllowed: {
[ ]: messages.webDownloadOwners,
[ ]: messages.webDownloadOwnersEditors,
},
externalRestricted: {
[ ]: messages.webDownloadExternalOwners,
[ ]: messages.webDownloadExternalOwnersEditors,
default: messages.webDownloadExternal,
},
},
};
export default downloadRestrictionsMessageMap;