blob: 408a18acf3f48e2f111cd5a75aeae676b10b3f2a [file] [log] [blame]
pineafanaed30242021-09-04 09:33:40 +01001import react, { Component } from "react";
Samuel Shuert604e31d2021-09-02 16:06:20 -05002import Styles from '../styles/tilerow.module.css';
Samuel Shuert8aac6012021-09-02 13:21:30 -05003
pineafanaed30242021-09-04 09:33:40 +01004class TileRow extends Component {
Samuel Shuert8aac6012021-09-02 13:21:30 -05005 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) => {
Samuel Shuert8aac6012021-09-02 13:21:30 -050015 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 TileRow;