import * as React from 'react' ; import 'YesterTech/Tiles.scss' ; interface TilesProps extends React . ComponentPropsWithoutRef < 'div' > { minSize ? : number ; } const Tiles = ( { children , minSize = 10 , ... rest } ) => { const style = { gridTemplateColumns : `repeat(auto-fill, minmax(${ minSize }em, 1fr))` , } ; return ( < div { ... rest } className = "tiles" style = { style } > { React . Children . map ( children , ( child ) => ( < div > { child } < /div>))} < /div>); } ; export default Tiles ;