import React from 'react';

export function Type(value){
  if(value === "交流"){
    return (<span className="blue">【交流】</span>)
  }else if(value === "求助"){
    return (<span className="orange">【求助】</span>)
  }
}

export function Tag(value){
  if(value === "置顶"){
    return (<span className="tag tagRed">置顶</span>)
  }else if(value === "精华"){
    return (<span className="tag tagBlue">精华</span>)
  }else if(value === "原创"){
    return (<span className="tag tagOrange">原创</span>)
  }
}