11import React , { useContext } from 'react' ;
22
33import { block , getThemedValue } from '../../utils' ;
4- import { ClassNameProps , HeaderBlockBackground , HeaderBlockProps } from '../../models' ;
4+ import { ClassNameProps , HeaderBlockBackground , HeaderBlockProps , WithChildren } from '../../models' ;
55import { headerHasMediaBackground } from '../../models/guards' ;
66import { Button , Media , BackgroundMedia , BackgroundImage , RouterLink , HTML } from '../../components' ;
77import { Grid , Row , Col } from '../../grid' ;
@@ -21,7 +21,7 @@ interface BackgroundProps {
2121 background : HeaderBlockBackground ;
2222}
2323
24- const Background : React . FC < BackgroundProps > = ( { background} ) => {
24+ const Background = ( { background} : BackgroundProps ) => {
2525 const { url, color, disableCompress, fullWidth, fullWidthMedia} = background ;
2626
2727 return headerHasMediaBackground ( background ) ? (
@@ -44,14 +44,14 @@ interface FullWidthBackgroundProps {
4444 background : HeaderBlockBackground ;
4545}
4646
47- const FullWidthBackground : React . FC < FullWidthBackgroundProps > = ( { background} ) => (
47+ const FullWidthBackground = ( { background} : FullWidthBackgroundProps ) => (
4848 < div
4949 className = { b ( 'background' , { [ 'full-width' ] : true } ) }
5050 style = { { backgroundColor : background ?. color } }
5151 />
5252) ;
5353
54- export const HeaderBlock : React . FunctionComponent < HeaderBlockFullProps > = ( props ) => {
54+ export const HeaderBlock = ( props : WithChildren < HeaderBlockFullProps > ) => {
5555 const {
5656 title,
5757 overtitle,
0 commit comments