import{__rest as s}from"tslib";import r from"react";import{twMerge as m}from"tailwind-merge";import{gridCols as o,gridColsSm as e,gridColsMd as t,gridColsLg as l}from"./styles.js";import{makeClassName as i}from"../../../lib/utils.js";const n=i("Grid"),a=r.forwardRef(((i,a)=>{const{numCols:c=1,numColsSm:d,numColsMd:u,numColsLg:f,children:C,className:p}=i,g=s(i,["numCols","numColsSm","numColsMd","numColsLg","children","className"]),b=(s,r)=>s&&Object.keys(r).includes(String(s))?r[s]:"";return r.createElement("div",Object.assign({ref:a,className:m(n("root"),"grid",(()=>{const s=b(c,o),r=b(d,e),i=b(u,t),n=b(f,l);return m(s,r,i,n)})(),p)},g),C)}));a.displayName="Grid";export{a as default};
