@orfeas126/box-ui-elements
Version:
Box UI Elements
48 lines • 1.64 kB
JavaScript
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;
//# sourceMappingURL=downloadRestrictionsMessageMap.js.map