import classNames from 'classnames' import { ArrowBackIcon } from 'lib/icons/ArrowBack.js' interface ContentHeaderProps { onBack: (() => void) | undefined title?: string subheading?: string className?: string } export function ContentHeader(props: ContentHeaderProps): JSX.Element | null { const { title, onBack, subheading, className } = props if (title == null && onBack == null) { return null } return (
{title} {subheading != null && ( {subheading} )}
) } function BackIcon(props: { onClick?: () => void }): JSX.Element | null { if (props.onClick == null) { return null } return }