Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const require_chunk = require("../chunk-BN4qSVkS.cjs");
const require_components_Icon_Icon = require("./Icon/Icon.cjs");
let _emotion_styled = require("@emotion/styled");
_emotion_styled = require_chunk.__toESM(_emotion_styled);
let _emotion_react_jsx_runtime = require("@emotion/react/jsx-runtime");
//#region src/components/ContentTable.tsx
function ContentTable({ columns, rows }) {
	return /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsxs)(StyledContentTable, { children: [/* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("thead", { children: /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsxs)("tr", { children: [/* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("th", {}), columns.map((column) => /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("th", { children: column.title }, column.key))] }) }), /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("tbody", { children: rows.map((row, index) => /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsxs)("tr", { children: [/* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("td", { children: row.title }), columns.map((column) => {
		const value = row[column.key];
		return /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("td", { children: value === true ? /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(require_components_Icon_Icon.Icon, {
			name: "CheckmarkCircle",
			width: 16,
			color: "success"
		}) : value }, column.key);
	})] }, index)) })] });
}
const StyledContentTable = _emotion_styled.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;
  }
`;
//#endregion
exports.ContentTable = ContentTable;
exports.StyledContentTable = StyledContentTable;
