import { Badge } from "antd";
import React from "react";

/** 广告状态 */
export enum ADGROUP_STATUS {
    ADGROUP_STATUS_FROZEN = '已冻结',
    ADGROUP_STATUS_SUSPEND = '暂停中',
    ADGROUP_STATUS_NOT_IN_DELIVERY_TIME = '广告未到投放时间',
    ADGROUP_STATUS_ACTIVE = '投放中',
    ADGROUP_STATUS_DELETED = '已删除',
    ADGROUP_STATUS_ACCOUNT_BALANCE_NOT_ENOUGH = '账户余额不足',
    ADGROUP_STATUS_DAILY_BUDGET_REACHED = '广告达到日预算上限',
    ADGROUP_STATUS_PARTIAL_ACTIVE = '部分投放中',
    ADGROUP_STATUS_CREATIVE_STATUS_PENDING = '创意未投放',
    ADGROUP_STATUS_CREATIVE_EMPTY = '创意准备中',
    ADGROUP_STATUS_JOINT_BUDGET_REACHED = '广告被暂停（联合预算达上限）',
    ADGROUP_STATUS_TOTAL_BUDGET_REACHED = '广告达到总预算上限'
}

/** 投放模式 */
export enum DELIVERY_MODE {
    DELIVERY_MODE_COMPONENT = '组件化创意',
    DELIVERY_MODE_CUSTOMIZE = '自定义创意'
}

/** 创意形式匹配方式 */
export enum DYNAMIC_CREATIVE_TYPE {
    DYNAMIC_CREATIVE_TYPE_COMMON = '手动指定',
    DYNAMIC_CREATIVE_TYPE_PROGRAM = '自动匹配'
}


/** 创意形式匹配方式 */
export enum DYNAMIC_CREATIVE_STATUS {
    DYNAMIC_CREATIVE_STATUS_PENDING = '审核中',
    DYNAMIC_CREATIVE_STATUS_DENIED = '审核不通过',
    DYNAMIC_CREATIVE_STATUS_ACTIVE = '投放中',
    DYNAMIC_CREATIVE_STATUS_SUSPEND = '暂停',
    DYNAMIC_CREATIVE_STATUS_PREPARE_FAILED = '创意准备失败',
    DYNAMIC_CREATIVE_STATUS_DELETED = '已删除',
    DYNAMIC_CREATIVE_STATUS_CREATING = '创意准备中',
}

export const AD_STATUS = {
    AD_STATUS_NORMAL: <Badge status="success" text='有效' />,
    AD_STATUS_SUSPEND: <Badge status="warning" text='暂停' />,
}