blob: e90da585e8f08b5ed786c050cd2deddf4df2099e [file] [log] [blame]
pineafanaed30242021-09-04 09:33:40 +01001import react, { Component } from "react";
pineafana5ce9102021-09-02 17:21:31 +01002import Styles from '../styles/autospacing.module.css';
3
pineafanaed30242021-09-04 09:33:40 +01004class AutoSpacing extends Component {
pineafana5ce9102021-09-02 17:21:31 +01005 constructor(props) {
6 super(props);
7 }
8
9
10 render() {
11 return (
12 <div className={Styles.container}>
13 {
pineafanaed30242021-09-04 09:33:40 +010014 react.Children.toArray(this.props.children).map((item, index) => {
pineafana5ce9102021-09-02 17:21:31 +010015 return <div className={Styles.item} key={index}>{item}</div>
16 })
17 }
18 </div>
19 )
20 }
21}
22
pineafanaed30242021-09-04 09:33:40 +010023export default AutoSpacing;