import React from "react";
import { i18n } from '@fishx/i18n';
import { connect } from "../../../redux";
import styled from "styled-components";
import { Collapse } from '@whalecloud/fdx';
import { getActiveElementWithChildren } from "../../../selectors";
import { toolCollapseAttr } from "../../../utils";
import CommonStyleSettings from "../../elements/components/CommonStyleSettings";
/**
 * columnSet
 * 设置列属性
 */

var Panel = Collapse.Panel;
var FormContainer = /*#__PURE__*/styled("div", {
  target: "ee1iqp30",
  label: "FormContainer"
})({
  padding: 5
});

var Settings = function Settings(props) {
  return /*#__PURE__*/React.createElement(FormContainer, null, /*#__PURE__*/React.createElement(Collapse, Object.assign({}, toolCollapseAttr, {
    defaultActiveKey: ['1', '2', '3', '4']
  }), /*#__PURE__*/React.createElement(Panel, {
    header: i18n('PAGEBUIDER_SETTINGS'),
    key: "1"
  }, /*#__PURE__*/React.createElement(CommonStyleSettings, null))));
};

var mapDispatchToProps = function mapDispatchToProps(dispatch) {
  return {
    updateElement: function updateElement(payload) {
      dispatch({
        type: 'appBuilder/updateAndFlattenElement',
        payload: payload
      });
    }
  };
};

export default connect(function (state) {
  return {
    element: getActiveElementWithChildren(state)
  };
}, mapDispatchToProps)(Settings);
//# sourceMappingURL=Settings.js.map