geoiq-frontend-ui-kit
Version:
This project is a UI kit for GeoIQ's frontend. It's built with React, TypeScript, and Vite.
49 lines (48 loc) • 1.67 kB
JavaScript
import { Table as o, TableHeader as N, TableRow as n, TableCell as s, TableBody as i } from "./index.es58.js";
import * as e from "react";
import { Typography as r } from "./index.es17.js";
function y({
tableData: a
}) {
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
o,
{
className: a?.tableContainerClassName ?? "",
id: a?.id
},
/* @__PURE__ */ e.createElement(N, { className: a?.tableHeaderClassName ?? "" }, /* @__PURE__ */ e.createElement(n, null, a.headers.map((l, m) => /* @__PURE__ */ e.createElement(
s,
{
key: m,
className: l?.className + " " + (a?.tableCellClassName ?? "")
},
typeof l?.name == "string" ? /* @__PURE__ */ e.createElement(r, { className: "text-light-2", variant: "body4" }, l.name) : /* @__PURE__ */ e.createElement(e.Fragment, null, l.name)
)))),
/* @__PURE__ */ e.createElement(i, { className: a?.tableBodyClassName ?? "" }, a.rows.map((l, m) => /* @__PURE__ */ e.createElement(
n,
{
className: a?.tableRowClassName ?? "",
key: m
},
l.cells.map((t, c) => /* @__PURE__ */ e.createElement(
s,
{
className: a?.tableCellClassName ?? "",
key: c
},
typeof t?.content == "string" ? /* @__PURE__ */ e.createElement(
r,
{
className: "text-light-2 " + (t?.className ?? ""),
variant: "body4"
},
t.content
) : /* @__PURE__ */ e.createElement(e.Fragment, null, t?.content)
))
)))
));
}
export {
y as default
};
//# sourceMappingURL=index.es57.js.map