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