import type { FC } from 'react' import type { Metafields } from '@commerce/types/common' import Text from '@components/ui/Text' interface Props { metafields: Metafields /** * 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