import React, { useCallback } from 'react'; import classNames from 'classnames'; import { XuiReactReturnIcon } from '@jy-fe/icons'; import { HeadLineProps } from './xui-head-line.d'; const XuiHeadLine: React.FC = ({ className: wrapperClassName = '', style = {}, title = '', isDetail, onBack, extra, }) => { const className = 'xui-ant__head-line'; const goBack = useCallback(() => { if (onBack) { onBack(); } else { history.back(); } }, []); return (
{isDetail && (
)} {title}
{extra}
); }; export default XuiHeadLine;