-
+
{title?.content}
-
+
{text?.content}
-
diff --git a/sections/Newsletter/Newsletter.tsx b/sections/Newsletter/Newsletter.tsx
index eccbc991..fe376268 100644
--- a/sections/Newsletter/Newsletter.tsx
+++ b/sections/Newsletter/Newsletter.tsx
@@ -1,5 +1,3 @@
-import Header from "../../components/ui/SectionHeader.tsx";
-
export interface Form {
placeholder?: string;
buttonText?: string;
@@ -7,35 +5,11 @@ export interface Form {
helpText?: string;
}
-interface Content {
- border?: boolean;
- /**
- * @format button-group
- * @options deco-sites/storefront/loaders/icons.ts
- */
- alignment?: "Left" | "Center" | "Right";
- bgColor?: "Normal" | "Reverse";
-}
-
-interface Header {
- /**
- * @format button-group
- * @options deco-sites/storefront/loaders/icons.ts
- */
- fontSize?: "Small" | "Normal" | "Large";
-}
-
-interface Layout {
- header?: Header;
- content?: Content;
-}
-
export interface Props {
title?: string;
/** @format textarea */
description?: string;
form?: Form;
- layout?: Layout;
}
const DEFAULT_PROPS: Props = {
@@ -47,30 +21,18 @@ const DEFAULT_PROPS: Props = {
helpText:
'Ao se inscrever, você concorda com nossa
Política de privacidade.',
},
- layout: {
- header: {
- fontSize: "Large",
- },
- content: {
- border: false,
- alignment: "Left",
- },
- },
};
export default function Newsletter(props: Props) {
- const { title, description, form, layout } = { ...DEFAULT_PROPS, ...props };
- const isReverse = layout?.content?.bgColor === "Reverse";
- const bordered = Boolean(layout?.content?.border);
+ const { title, description, form } = { ...DEFAULT_PROPS, ...props };
const headerLayout = (
-
+
+
+ {title}
+
+
{description}
+
);
const formLayout = form && (
@@ -82,7 +44,7 @@ export default function Newsletter(props: Props) {
placeholder={form.placeholder}
/>