/*
 * @Author: 赵伟
 * @Date: 2024-04-17 14:01:46
 * @Description: 页面标题
 */
import classNames from 'classnames';
import React from 'react';
import './index.less';

type PageTitleProps = {
  /** 标题 */
  title: React.ReactNode;
  /** 自定义类名 */
  className?: string;
  /** 自定义样式 */
  style?: React.CSSProperties;
};

/**
 * 页面标题
 */
function PageTitle({ title, style, className = '' }: PageTitleProps) {
  return (
    <div className={classNames('kf-page-title', className)} style={style}>
      {title}
    </div>
  );
}

export default PageTitle;
