import e from"../../node_modules/classnames/index.js";import r from"react";import t from"../Clickable/Clickable.js";import{convertFlexContainerPropsToClassNames as l}from"../utils.js";import o from"./Card.module.scss.js";import s from"../../node_modules/lodash/isNil.js";const d=r.forwardRef(((d,i)=>{const{children:a,border:m=!1,fill:f=!0,selected:c=!1,disabled:n=!1,tight:h=!1,...p}=d,b=!s(p.onClick)||!s(p.href),u=e(o.root,l(d),{"bg-gray-lighter":f,"border-gray-light":m,"h-100":d.fullHeight,"p-2":h,"p-3":!h,"w-100":d.fullWidth,[o.selected]:c,[o.disabled]:n,[o.hoverable]:b}),g=r.createElement("div",{className:u,"data-testid":d["data-testid"],ref:b?void 0:i},a);return b?r.createElement(t,{...p,ref:i},g):g}));export{d as default};
//# sourceMappingURL=Card.js.map
