import { useSharedState } from "../../../../../../hooks";
// import { Access } from '@umijs/max';
import { Context } from "../../../../model";
import { getFieldByType } from "../../../fields";
import React from "react";
import "./index.less";
var CustomHeaderCell = function CustomHeaderCell(props) {
  var field_type = props.field_type,
    lock = props.lock;
  var _useSharedState = useSharedState(Context),
    state = _useSharedState.state,
    dispatch = _useSharedState.dispatch;
  var isCheckbox = !props.record;
  var field = 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));
};
export default CustomHeaderCell;