import React, { ReactNode } from 'react'; import cx from 'classnames'; import { PrintButton } from 'app/shared/containers/print/printButton'; import * as Text from 'app/shared/components/text/text'; interface Props { hasPrintButton?: boolean, headline: string, line1?: string, line2?: string, children?: ReactNode, } export const SubHeader = ({ hasPrintButton, children, headline, line1, line2 }: Props) => { const subHeaderClassName = cx( 'c-sub-header o-layout u-flex-column ', { 'c-sub-header__with-one-line': line1 && !line2 }, { 'c-sub-header__with-two-lines': line1 && line2 } ); return (