import * as React from "react" import { Heading, GuideCard, List, Button, } from "../../writer"; import { PageHomeProps } from "./types"; import { GridDecorator } from "../../content/GridDecorator"; import * as cn from "./PageHome.styles" export function PageHome(props: PageHomeProps) { return
{props?.hero?.image ? {props.hero.title} : null} {props.hero?.title} {props.hero?.description} {props?.hero?.button ? : null}
{ props.sections?.map((section, index) => { section?.title ?
{section.title}
: null } { section?.cards?.length ?
{section.cards?.map((card, index) => ( ))}
: null }
) }
}