import { MakeswiftComponentType } from "../../../../../components/builtin/constants";
const buttonComponentData = ({
  htmlId,
  linkData: linkData2
}) => ({
  key: "3dda7ade-3dcb-4776-a2f5-2f7e04e34ec2",
  props: {
    id: {
      "@@makeswift/type": "prop-controllers::element-id::v1",
      value: htmlId
    },
    link: {
      "@@makeswift/type": "prop-controllers::link::v1",
      value: linkData2
    },
    margin: {
      "@@makeswift/type": "prop-controllers::margin::v1",
      value: [
        {
          deviceId: "desktop",
          value: {
            marginBottom: {
              unit: "px",
              value: 80
            },
            marginTop: {
              unit: "px",
              value: 60
            }
          }
        }
      ]
    }
  },
  type: MakeswiftComponentType.Button
});
const linkUrlData = (url = "https://www.makeswift.com/") => ({
  payload: {
    openInNewTab: false,
    url
  },
  type: "OPEN_URL"
});
const linkData = {
  page: {
    payload: {
      openInNewTab: false,
      pageId: "UGFnZTozOWZkNDcyZS03N2QxLTRjZDItOGE3Yi02ZTQ2MDU3ODgxNzM="
    },
    type: "OPEN_PAGE"
  },
  url: linkUrlData(),
  email: {
    payload: {
      body: "",
      subject: "Buttons",
      to: "alan@makeswift.com"
    },
    type: "SEND_EMAIL"
  },
  phone: {
    payload: {
      phoneNumber: "15551234567"
    },
    type: "CALL_PHONE"
  },
  element: {
    payload: {
      block: "start",
      elementIdConfig: {
        elementKey: "3dda7ade-3dcb-4776-a2f5-2f7e04e34ec2",
        propName: "id"
      }
    },
    type: "SCROLL_TO_ELEMENT"
  }
};
export {
  buttonComponentData,
  linkData,
  linkUrlData
};
//# sourceMappingURL=button-component.js.map