import React from 'react';

import IconFont from '../../../themeComponents/IconFont'


function VideoTitle({ title, onClose, isFile}) {
  //type测试
  return (
    <div className={`lm-c-video-title ${!isFile ? 'hide-novideo-title' : ''}`}>
      <span>{title}</span>
      {onClose && (
        <span>
          <IconFont type="icon-S_Edit_LineClose" onClick={onClose} title="关闭" />
        </span>
      )}
    </div>
  );
}

export default React.memo(VideoTitle);
