@orfeas126/box-ui-elements
Version:
Box UI Elements
22 lines (18 loc) • 826 B
Flow
// @flow
import messages from './messages';
import { APP_RESTRICTION_MESSAGE_TYPE, LIST_ACCESS_LEVEL } from '../constants';
const { BLACKLIST, WHITELIST } = LIST_ACCESS_LEVEL;
const { DEFAULT, WITH_APP_LIST, WITH_OVERFLOWN_APP_LIST } = APP_RESTRICTION_MESSAGE_TYPE;
const integrationRestrictionsMessageMap = {
[]: {
[]: messages.integrationDownloadRestricted,
[]: messages.integrationDownloadDenylist,
[]: messages.integrationDownloadDenylistOverflow,
},
[]: {
[]: messages.integrationDownloadRestricted,
[]: messages.integrationDownloadAllowlist,
[]: messages.integrationDownloadAllowlistOverflow,
},
};
export default integrationRestrictionsMessageMap;