//#region src/componentSystems/pageRenderer/utils/TableColumnDefs.js
const TableColumnDefs = (columnDefs, actionList, columName = "Actions", crudTableActionRenderName = "actionsRenderer", panelDirection = "right") => {
	if (columnDefs.find((x) => x.headerName === columName)) return columnDefs;
	columnDefs.push({
		headerName: columName,
		filter: false,
		pinned: panelDirection,
		width: 200,
		maxWidth: 210,
		cellRenderer: crudTableActionRenderName,
		cellRendererParams: { actionList },
		valueGetter: (params) => params.data,
		suppressMenu: true,
		sortable: false,
		cellStyle: {
			display: "flex",
			alignItems: "center"
		}
	});
	return columnDefs;
};
//#endregion
export { TableColumnDefs };

//# sourceMappingURL=TableColumnDefs.mjs.map