diff options
Diffstat (limited to 'src/react/TileInfo.js')
-rw-r--r-- | src/react/TileInfo.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/react/TileInfo.js b/src/react/TileInfo.js new file mode 100644 index 0000000..bda8e74 --- /dev/null +++ b/src/react/TileInfo.js @@ -0,0 +1,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; |