seti-ramesesv1
Version:
Reusable components and context for Next.js apps
11 lines (8 loc) • 764 B
JavaScript
import { jsx, jsxs } from 'react/jsx-runtime';
import 'react';
// DataListHeader.tsx
const DataListHeader = ({ visibleCols, columns, showActions, dropdown }) => {
return (jsx("thead", { className: "sticky top-0 z-10 bg-white shadow-[0_1px_0_rgb(235,241,245)]", children: jsxs("tr", { children: [visibleCols.map((col) => (jsx("th", { style: { width: col.width ? `${col.width}px` : "auto" }, className: "px-4 py-3 text-left font-bold text-sm align-middle text-gray-700 bg-gray-100", children: col.title }, col.id))), showActions && jsx("th", { className: "px-4 py-3 text-center w-1 text-gray-700 bg-gray-100" }), dropdown && jsx("th", { className: "px-4 py-3 w-1" })] }) }));
};
export { DataListHeader as default };
//# sourceMappingURL=DataListHeader.js.map