mirror of
https://github.com/vercel/commerce.git
synced 2025-05-19 16:07:01 +00:00
27 lines
487 B
TypeScript
27 lines
487 B
TypeScript
import React, { FC } from 'react'
|
|
import { Hero } from '@components/ui'
|
|
import { URLField } from "@agility/nextjs"
|
|
import { Module } from '@agility/nextjs'
|
|
|
|
|
|
interface Fields {
|
|
title:string,
|
|
description:string
|
|
cTA?:URLField
|
|
}
|
|
|
|
const HeroModule:Module<Fields> = ({ module: {fields }}) => {
|
|
|
|
return (
|
|
<Hero
|
|
headline={fields.title}
|
|
description={fields.description}
|
|
ctaText={fields.cTA?.text || ""}
|
|
ctaUrl={fields.cTA?.href || ""}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export default HeroModule
|
|
|