import * as React from "react"; import { get } from "lodash"; import { style } from "./style"; import { default as defaultData } from "./data.json"; import { doIShow, combineData } from "../../utils"; import { Block, Section, Headline, Text, Container, Grid, GridItem, } from "@sc/plugins/webcomponents/v2"; import { ImagePlaceholder, ImagePlaceholderTypes } from "../../Placeholders"; import theme from "../../theme"; const FtrGroup = ({ data }) => { const { title, text } = data; return ( {title} {text} ); }; 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 (
{doIShow(content, "main_headline") && ( Arranged in a way that reflects are )} {doIShow(content, "sub_headline") && ( {get(content, "sub_headline.html", "...")} )} {doIShow(content, "main_headline") && ( Unlike low fidelity wireframes )} {doIShow(content, "sub_headline") && ( {get(content, "sub_headline.html", "...")} )}
); }; export default Layout;