import { getActClass as commonGetActClass } from 'press-ui/common/utils/act-bem';

export const TIP_CLASS_MAP = {
  merchant: 'merchant-page-ticket',
  main: 'tip-merchant-item',

  'icon--vip': 'tip-vip-icon',
  'icon--college': 'tip-gaoxiao-icon',
  'icon--hot': 'tip-hot-icon',
  'icon--star-vip': 'tip-star-vip-icon',

  top: 'tip-merchant-top',
  avatar: 'tip-merchant-avatar',
  image: 'tip-merchant-image',
  name: 'tip-merchant-name',

  'swipe-image': 'tip-swipe-img',
  'swipe-bottom': 'tip-swipe-bottom',
  'swipe-name': 'tip-swipe-name',
  'swipe-desc': 'tip-swipe-desc',

  'card-bottom': 'tip-card-bottom',
  'card-desc': 'tip-card-bottom-desc',

  'button--receive': 'tip-receive-button',
  'button--use': 'tip-use-button',
  'button--disable': 'tip-disable-button',
};

export function getActClass(useTipClass: boolean, args: any) {
  return commonGetActClass(useTipClass, TIP_CLASS_MAP, args);
}
export const EXTRA_CLASS_MAP = {
  'merchant-page-ticket-big': 'press-act-merchant-item--big',
  'merchant-page-ticket-sm': 'press-act-merchant-item--small',
  'merchant-page-ticket-brand': 'press-act-merchant-item--brand',
  'merchant-page-ticket-like': 'press-act-merchant-item--like',
  'merchant-page-ticket-priority': 'press-act-merchant-item--priority',
  'merchant-page-priority-brand': 'press-act-merchant-item--priority-brand',
  'merchant-page-ticket-video': 'press-act-merchant-item--priority-video',
};

