mirror of
https://github.com/vercel/commerce.git
synced 2025-07-26 03:31:23 +00:00
dynamic product description comonents
This commit is contained in:
21
components/product/sustainability-info.tsx
Normal file
21
components/product/sustainability-info.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import { credentials, credentialsKeys } from "constants/sustainability";
|
||||
|
||||
export function SustainabilityInfo() {
|
||||
return (
|
||||
<>
|
||||
<div>
|
||||
<p className='font-bold mt-6'>Credentials:</p>
|
||||
<ul className='mt-2'>
|
||||
{credentialsKeys.map(credential => (
|
||||
<li
|
||||
key={credential}
|
||||
id={credential}
|
||||
>
|
||||
{credentials[credential as keyof typeof credentials].title}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
};
|
Reference in New Issue
Block a user