import cls from './container.module.less'

import IconStack from '../assets/Icon/icon-stack.png'

const Container = props => {
  let icon = null
  switch (props.icon){
    case 'kiln':
      icon = IconStack
  }

  return <div className={`${cls.container} ${props.className}`}>
    <div className={cls.container__head}>
      <img src={icon} alt="#" />
      <h2>{props.title}</h2>
    </div>
    <div className={cls.container__content}>
      {props.children}
    </div>
  </ div>
}

export default Container