import { FunctionComponent , ReactNode } from 'react' ; import styles from './Section.module.scss' ; import classNames from 'classnames' ; interface Props { children : ReactNode ; alternate ? : boolean ; } const Section = ( { children , alternate } ) => ( < section className = { classNames ( styles . section , { [ styles . alternate ] : alternate } ) } > { children } < /section>); export default Section ;