import * as React from "react"; import { get } from "lodash"; import { style } from "./style"; import { default as defaultData } from "./data.json"; import { doIShow, combineData, lorem } from "../../utils"; import theme from "../../theme"; import { lighten } from "@material-ui/core/styles"; import { Block, Section, Headline, Text, Container, Button, Progress, Group, FormField, Grid, GridItem, FormBuilder, } from "@sc/plugins/webcomponents/v2"; import { FormFieldTypes } from "@sc/modules/v2/CRUD/FormBuilder/types"; const StepONE = ({ setStep }) => (
(Make a selection, enter your email and click “Continue…” to complete) Please Tell Us More About You… Step 1: Which of the best describes where you’re at in your business:
); const StepTWO = ({ setStep }) => { return (
(Enter your email address below and click “Continue…” to complete) Step 2: Fill Out the Form Below...
); }; type LayoutProps = { data: any; }; const Layout: React.FC = ({ data }) => { const initialContent = { main_headline: { html: "Headline Goes Here", }, sub_headline: { html: "Sub Headline Text Content Goes Here", }, }; const content = combineData(initialContent, defaultData, data); const [step, setStep] = React.useState(1); return (
{step === 1 && } {step === 2 && }
); }; export default Layout;