blob: e90da585e8f08b5ed786c050cd2deddf4df2099e [file] [log] [blame]
import react, { Component } from "react";
import Styles from '../styles/autospacing.module.css';
class AutoSpacing extends Component {
constructor(props) {
super(props);
}
render() {
return (
<div className={Styles.container}>
{
react.Children.toArray(this.props.children).map((item, index) => {
return <div className={Styles.item} key={index}>{item}</div>
})
}
</div>
)
}
}
export default AutoSpacing;