summaryrefslogtreecommitdiffstats
path: root/src/react/TileInfo.js
blob: bda8e749dfd41dad43974877ea79a50e956f5797 (plain)
1
2
3
4
5
6
7
8
9
10
import React, {Children} from 'react';
import TileInfoLine from './TileInfoLine.js';

const TileInfo = ({align, children}) => (
	<div className={`sdc-tile-content-info ${align === 'center' ? 'centered' : ''}`}>
		{Children.toArray(children).filter(e => e.type === TileInfoLine)}
	</div>
);

export default TileInfo;