blob: 7421f19d5d4ac7780ac6ea9ff08591c489cea87e [file] [log] [blame]
pineafanaed30242021-09-04 09:33:40 +01001import react, { Component } from "react";
pineafane0283a82022-02-13 10:05:56 +00002import Styles from '../styles/Components/cardrow.module.css';
pineafana5ce9102021-09-02 17:21:31 +01003
4class CardRow extends Component {
5 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
23export default CardRow;