import styles from '../index.less'

const TabContain = (props) =>{
  let { title, id, isSelect ,handleClick} = props;
  return (
      <div className={isSelect ? `${styles['tabOne']} ${styles['active']}` : styles['tabOne']}
          onClick={() =>handleClick(id)}
      >
          {title}
          <div className={isSelect ? `${styles['tabLine']} ${styles['activeLine']}` : styles['tabLine']}></div>
      </div>
  )
}
export default  TabContain;