import type { FC } from 'react' import type { ProductMetafields as IProductMetafields } from '@commerce/types/product' import Text from '@components/ui/Text' interface Props { metafields: IProductMetafields /** * The namespace of the metafields to display. */ namespace: string } const ProductMetafields: FC = ({ metafields, namespace }) => { return ( <> {Object.values(metafields[namespace] ?? {}).map((field) => (
{field.name}:
))} ) } export default ProductMetafields