import { jsx as p } from "react/jsx-runtime";
import { cn as m } from "../utils/cn.js";
const v = ({
  children: r,
  isClickable: o,
  onClick: t,
  padding: e = "default",
  className: d,
  as: s = "div",
  ...a
}) => /* @__PURE__ */ p(
  s,
  {
    onClick: t,
    onKeyDown: o ? (n) => {
      (n.key === "Enter" || n.key === " ") && (n.preventDefault(), t?.());
    } : void 0,
    role: o ? "button" : void 0,
    tabIndex: o ? 0 : void 0,
    className: m(
      "rounded-sw-lg bg-sw-gray-900 transition-colors",
      {
        "cursor-pointer": o,
        "p-sw-2xl": e === "default"
      },
      d
    ),
    ...a,
    children: r
  }
);
export {
  v as Card
};
//# sourceMappingURL=Card.js.map
