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