import { Product } from "@medusajs/medusa" import { useTranslation } from "react-i18next" import useToggleState from "../../../hooks/use-toggle-state" import EditIcon from "../../fundamentals/icons/edit-icon" import { ActionType } from "../../molecules/actionables" import Section from "../section" import AttributeModal from "./attribute-modal" type Props = { product: Product } const ProductAttributesSection = ({ product }: Props) => { const { t } = useTranslation() const { state, toggle, close } = useToggleState() const actions: ActionType[] = [ { label: "Edit Attributes", onClick: toggle, icon: , }, ] return ( <>

{t("product-attributes-section-dimensions", "Dimensions")}

{t("product-attributes-section-customs", "Customs")}

) } type AttributeProps = { attribute: string value: string | number | null } const Attribute = ({ attribute, value }: AttributeProps) => { return (

{attribute}

{value || "–"}

) } export default ProductAttributesSection