"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
const index = require("../../../icons/index.cjs");
;/* empty css                                                                                                                                                                                           */
;/* empty css                                                                                                                                                                                            */
;/* empty css                                                                                                                                                                                                    */
;/* empty css                                                                                                                                                                                               */
;/* empty css                                                                                                                                                                                               */
const Box = require("../../../node_modules/.pnpm/@mantine_core@7.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_szqfuioo5damkjdixckhzmwycq/node_modules/@mantine/core/esm/core/Box/Box.cjs");
const renderExpandCell = ({ row, cell, ...rest }) => {
  const canExpand = row.getCanExpand();
  const value = cell.getValue();
  const paddingLeft = row.depth * 20;
  const icon = row.getIsExpanded() ? /* @__PURE__ */ jsxRuntime.jsx(index.IconChevronDown, { size: 18 }) : /* @__PURE__ */ jsxRuntime.jsx(index.IconChevronRight, { size: 18 });
  return /* @__PURE__ */ jsxRuntime.jsxs(
    Box.Box,
    {
      sx: () => ({
        paddingLeft: canExpand ? paddingLeft : paddingLeft + 6,
        display: "flex",
        alignItems: "center",
        cursor: canExpand ? "pointer" : void 0
      }),
      onClick: row.getToggleExpandedHandler(),
      children: [
        canExpand && /* @__PURE__ */ jsxRuntime.jsx(Box.Box, { sx: { display: "flex", alignItems: "center", marginRight: 8 }, children: icon }),
        value
      ]
    }
  );
};
exports.renderExpandCell = renderExpandCell;
