xuchang-screen/src/components/Container.jsx
2023-06-30 16:29:27 +08:00

23 lines
509 B
JavaScript

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