import { compose , identity , withClickId , withProps , } from '@axa-fr/react-toolkit-core' ; import HeaderCore , { HeaderCoreProps } from './HeaderCore' ; export type HeaderProps = HeaderCoreProps ; const setWithProps = ( props ) => ( { ... props , children : props . title , } ) ; const enchance = compose ( identity < HeaderCoreProps > ( ) , withClickId ( { event : [ 'onCancel' ] } ) , withProps ( setWithProps ) ) ( HeaderCore ) ; enchance . displayName = 'Header' ; export default enchance ;