You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.tsx 576 B

1234567891011121314151617181920212223242526
  1. /*
  2. * @Author: 赵伟
  3. * @Date: 2024-04-17 15:25:04
  4. * @Description: 分区标题
  5. */
  6. import classNames from 'classnames';
  7. import './index.less';
  8. type SubAreaTitleProps = {
  9. title: string;
  10. image: string;
  11. style?: React.CSSProperties;
  12. className?: string;
  13. };
  14. function SubAreaTitle({ title, image, style, className }: SubAreaTitleProps) {
  15. return (
  16. <div className={classNames('kf-subarea-title', className)} style={style}>
  17. <img src={image} width={14} />
  18. <span style={{ marginLeft: '8px' }}>{title}</span>
  19. </div>
  20. );
  21. }
  22. export default SubAreaTitle;