MathiasKandelborg/TRUE-framework

View on GitHub
components/HoC/PageSection.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import * as MUI from '@material-ui/core'

interface IPageSectionComponentProps {
  id: string
  className: string
  direction?: 'row' | 'column' | 'row-reverse' | 'column-reverse'
}

const PageSection: React.FC<IPageSectionComponentProps> = (props) => {
  const { id, children, direction, className } = props

  return (
    <MUI.Grid
      className={className}
      container
      direction={direction}
      item
      xs={12}
      component="section"
      id={id}>
      <>{children}</>
    </MUI.Grid>
  )
}

export default PageSection