/*
 * @Author: 赵伟
 * @Date: 2024-04-17 15:25:04
 * @Description: 分区标题
 */

import classNames from 'classnames';
import './index.less';

type SubAreaTitleProps = {
  title: string;
  image: string;
  style?: React.CSSProperties;
  className?: string;
};

function SubAreaTitle({ title, image, style, className }: SubAreaTitleProps) {
  return (
    <div className={classNames('kf-subarea-title', className)} style={style}>
      <img src={image} width={14} />
      <span style={{ marginLeft: '8px' }}>{title}</span>
    </div>
  );
}

export default SubAreaTitle;
