import * as React from "react"; import { get } from "lodash"; import { faFacebookF, faGoogle, faTwitter, faInstagram, } from "@fortawesome/free-brands-svg-icons"; import { style } from "./style"; import { default as defaultData } from "./data.json"; import { doIShow, combineData } from "../../utils"; import theme from "../../theme"; import { Block, Section, Headline, Text, Container, Grid, GridItem, FormField, Button, Navigation, } from "@sc/plugins/webcomponents/v2"; import { NavigationLayouts, ItemTypes, } from "@sc/plugins/webcomponents/v2/Navigation/types"; import { IconSource } from "@sc/plugins/webcomponents/v2/Icon/types"; 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); return (
Subscribe to stay tuned for news and latest updates. {doIShow(content, "input") && ( )} {doIShow(content, "cta_button") && (
); }; export default Layout;