import { noop } from "lodash"; import React from "react"; import styled from "styled-components"; import { Button, Category, Toggle, Size } from "design-system"; import { AllowToggle, AllowToggleLabel, AllowToggleWrapper, ButtonWrapper, FormBodyWrapper, FormHeaderIndex, FormHeaderLabel, FormHeaderWrapper, } from "./common"; import { memo } from "react"; import { createMessage, WELCOME_FORM_NEWLETTER_HEADER, WELCOME_FORM_NEWLETTER_LABEL, WELCOME_FORM_SUBMIT_LABEL, } from "@appsmith/constants/messages"; export const StyledButton = styled(Button)` width: 201px; height: 38px; `; const NewsletterContainer = styled.div` widht: 100%; position: relative; padding-left: ${(props) => props.theme.spaces[17] * 2}px; margin-top: ${(props) => props.theme.spaces[12] * 2}px; `; export default memo(function NewsletterForm() { return ( 3. {createMessage(WELCOME_FORM_NEWLETTER_HEADER)} noop} value /> {createMessage(WELCOME_FORM_NEWLETTER_LABEL)} ); });