import { generateId } from "./../../../../ricos-content/index.js";
const createPreset1 = ({
  title,
  content,
  buttonText
}) => ({
  nodes: [
    {
      type: "LAYOUT",
      id: generateId(),
      nodes: [
        {
          type: "LAYOUT_CELL",
          id: generateId(),
          nodes: [
            {
              type: "HEADING",
              id: generateId(),
              nodes: [
                {
                  type: "TEXT",
                  id: "",
                  textData: {
                    text: title,
                    decorations: [
                      {
                        type: "BOLD",
                        fontWeightValue: 700
                      }
                    ]
                  }
                }
              ],
              headingData: {
                level: 2,
                textStyle: {
                  textAlignment: "CENTER"
                }
              }
            },
            {
              type: "PARAGRAPH",
              id: generateId(),
              nodes: [
                {
                  type: "TEXT",
                  id: "",
                  textData: {
                    text: content
                  }
                }
              ],
              paragraphData: {
                textStyle: {
                  textAlignment: "CENTER"
                }
              }
            },
            {
              type: "PARAGRAPH",
              id: generateId(),
              paragraphData: {
                textStyle: {
                  textAlignment: "CENTER"
                }
              }
            },
            {
              type: "BUTTON",
              id: generateId(),
              buttonData: {
                containerData: {
                  width: {
                    size: "ORIGINAL"
                  },
                  alignment: "CENTER",
                  spoiler: {},
                  height: {},
                  textWrap: false
                },
                type: "LINK",
                styles: {},
                text: buttonText
              }
            }
          ],
          layoutCellData: {}
        }
      ],
      layoutData: {
        backdropColor: "$theme-color-4",
        backdropImage: {
          media: {
            src: {
              id: "16f8d7_91ac30f2c2ec499da7dd0190df004568~mv2.webp"
            },
            width: 4608,
            height: 2963
          },
          opacity: 100,
          scaling: "COVER",
          position: "CENTER"
        },
        backdropPaddingTop: 26,
        backdropPaddingBottom: 26,
        cellPadding: [],
        cellVerticalAlignment: "MIDDLE",
        responsivenessBehaviour: "STACK"
      }
    }
  ]
});
export {
  createPreset1
};
//# sourceMappingURL=create-preset-1.js.map
