Loading
function(e,t,n){"use strict";n.d(t,{A:()=>s});var l=n(64700);function i(e,t,n){return Math.min(Math.max(Math.floor(e/t),1),n)}let s=(0,n(456412).A)(class extends l.Component{static defaultProps={desiredItemWidth:200};static getDerivedStateFromProps(e,t){let{width:n,desiredItemWidth:l,maxColumns:s}=e,r=i(n,l,s);return r!==t.columns?{columns:r}:null}state={columns:i(this.props.width,this.props.desiredItemWidth,this.props.maxColumns)};render(){let{width:e,height:t,children:n}=this.props,{columns:l}=this.state;return n(l,e,t)}})}