import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import classNames from 'classnames';
import { ArrowBackIcon } from '../../../lib/icons/ArrowBack.js';
export function ContentHeader(props) {
    const { title, onBack, subheading, className } = props;
    if (title == null && onBack == null) {
        return null;
    }
    return (_jsxs("div", { className: classNames('seam-content-header', className), children: [_jsx(BackIcon, { onClick: onBack }), _jsxs("div", { children: [_jsx("span", { className: 'seam-title', children: title }), subheading != null && (_jsx("span", { className: 'seam-subheading', children: subheading }))] })] }));
}
function BackIcon(props) {
    if (props.onClick == null) {
        return null;
    }
    return _jsx(ArrowBackIcon, { className: 'seam-back-icon', onClick: props.onClick });
}
//# sourceMappingURL=ContentHeader.js.map