import useSharedState from "../../../../../../hooks/useSharedState.js";
import { Context } from "../../../../model.js";
import { getFieldByType } from "../../../fields/index.js";
import React from "react";
import "./index.less";
//#region src/components/table/Table/tableConfig/header/CellProvider/index.tsx
const CustomHeaderCell = (props) => {
	const { field_type, lock } = props;
	const { state, dispatch } = useSharedState(Context);
	const isCheckbox = !props.record;
	getFieldByType(field_type);
	return isCheckbox ? /* @__PURE__ */ React.createElement(React.Fragment, null, props.children) : /* @__PURE__ */ React.createElement("div", { className: "materials-grid-table-header-cell" }, /* @__PURE__ */ React.createElement("div", { className: "materials-grid-table-header-cell-content" }, props.children));
};
//#endregion
export { CustomHeaderCell as default };
