chore(pricing): add Drupal module template

This commit is contained in:
Oliver Davies 2023-09-12 08:05:23 +01:00
parent 5cad596c2c
commit ae35e34f86
2 changed files with 17 additions and 6 deletions

View file

@ -17,12 +17,15 @@ export const priceFormatter = new Intl.NumberFormat('en-GB', {
{products && products.map(product => (
<article class="space-y-4">
<h2>
{product.title}
{product.price && (
<> - {priceFormatter.format(product.price)}
{product.perMonth && (<> per month</>)}
</>
)}
{product.title} - <> </>
{product.price
? (
<>{priceFormatter.format(product.price)}
{product.perMonth && (<> per month</>)}
</>
)
: 'Free!'
}
</h2>
<div>{product.description}</div>