const legacyAdTypes = {
  cube: 'mrec-small_btf',
  supercube: 'banner_btf',
  leaderboard: 'banner',
  'leaderboard-320': 'banner'
};

/**
 * This function is responsible for resolving the type of ad that we want to
 * use, supporting — for now — legacy ad types that we no longer use going
 * forward.
 *
 * @param {string} type
 */
const resolveAdType = function resolveAdType(type) {
  return legacyAdTypes[type] || type;
};
export default resolveAdType;