"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.buildTagsColumn = buildTagsColumn;
exports.useTagsColumn = useTagsColumn;
var _react = _interopRequireDefault(require("react"));
var _react2 = require("@wix/bex-core/react");
var _TagsColumnContent = require("./TagsColumnContent");
var _useSelector = require("../../useSelector");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/components/TagsColumn/TagsColumn.tsx";
function buildTagsColumn(container, columnConfig) {
  return {
    ...columnConfig,
    id: 'tags',
    title: container.translate('cairo.tags.collectionPage.tagsColumn.title'),
    render: item => /*#__PURE__*/_react.default.createElement(_TagsColumnContent.TagsColumnContent, {
      item: item,
      __self: this,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 17,
        columnNumber: 26
      }
    }),
    width: '200px',
    hiddenFromCustomColumnsSelection: false
  };
}
function useTagsColumn() {
  const container = (0, _react2.useWixPatternsContainer)();
  (0, _useSelector.useSelector)(() => container.initTask.status);
  const buildTagsColumnWrapper = columnConfig => {
    return buildTagsColumn(container, columnConfig);
  };
  return {
    buildTagsColumn: buildTagsColumnWrapper
  };
}
//# sourceMappingURL=TagsColumn.js.map