/*
 * @Author: wufan
 * @Date: 2020-12-02 10:21:50
 * @LastEditors: wufan
 * @LastEditTime: 2020-12-02 10:22:08
 * @Description: Description
 * @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
 */
import React from 'react';

export interface VersionInfo {
    dayTime: number; //有效时长
    stateEnum: string; //"NO"已过期,"YES"未过期
    surplusDayTime: number; //剩余有效天数
    surplusUserNum: number; //剩余限制人数
    userNum: number; //限制人数
    validEndTime: string;
    validStartTime: string;
    validEndTimeST: number;
    validStartTimeST: number;
    whetherReachUserNum: boolean;
  }

export const XMContext: any = React.createContext(null);
export const VersionContext = React.createContext<VersionInfo|null>(null)