import React from 'react' ; import { withClassDefault , withClassModifier , WithClassModifierOptions , compose , identity , } from '@axa-fr/react-toolkit-core' ; const DEFAULT_CLASSNAME = 'af-restitution__content' ; type SectionRestitutionBaseProps = { className ? : string ; children ? : React . ReactNode ; } ; const SectionRestitution = ( { children , className , } ) => ( < section className = { className } > { children } < /section>); type SectionRestitutionProps = WithClassModifierOptions & SectionRestitutionBaseProps ; const enhance = compose ( identity < SectionRestitutionBaseProps > ( ) , withClassDefault ( DEFAULT_CLASSNAME ) , withClassModifier ( ) ) ; const defaultProps = { children : null , className : DEFAULT_CLASSNAME , } ; const Enhanced = enhance ( SectionRestitution ) ; Enhanced . displayName = 'SectionRestitution' ; Enhanced . defaultProps = defaultProps ; export default Enhanced ;