feat(pricing): mark some products as limited

...availability
This commit is contained in:
Oliver Davies 2023-09-14 14:09:04 +01:00
parent b5605ebc7a
commit e5473613d1
2 changed files with 8 additions and 1 deletions

View file

@ -28,7 +28,12 @@ export const priceFormatter = new Intl.NumberFormat('en-GB', {
}
</h2>
<div>{product.description}</div>
<div>
<p>
{product.description}
{product.isLimited && (<> <strong>Limited places available!</strong></>)}
</p>
</div>
<footer>
<a href={product.link.href}>{product.link.text} &rarr;</a>