"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var _chunkWF7Z2VITcjs = require('./chunk-WF7Z2VIT.cjs');

// src/components/ContentTable.tsx
var _styled = require('@emotion/styled'); var _styled2 = _interopRequireDefault(_styled);
var _jsxruntime = require('@emotion/react/jsx-runtime');
function ContentTable({
  columns,
  rows
}) {
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, StyledContentTable, { children: [
    /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { children: [
      /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "th", {}),
      columns.map((column) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "th", { children: column.title }, column.key))
    ] }) }),
    /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tbody", { children: rows.map((row, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { children: [
      /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { children: row.title }),
      columns.map((column) => {
        const value = row[column.key];
        return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { children: value === true ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWF7Z2VITcjs.Icon, { name: "CheckmarkCircle", width: 16, color: "success" }) : value }, column.key);
      })
    ] }, index)) })
  ] });
}
var StyledContentTable = _styled2.default.table`
  width: 100%;
  border-collapse: collapse;
  border: 1px solid ${({ theme }) => theme.c1Neutral};
  color: ${({ theme }) => theme.c6Neutral};

  tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
  }

  tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
  }

  th,
  td {
    padding: 26px 12px;
    border: 1px solid #e5e5e5;
  }
  th {
    text-align: center;
  }
  td {
    vertical-align: middle;
    text-align: center;
  }
`;




exports.ContentTable = ContentTable; exports.StyledContentTable = StyledContentTable;
