refactor shopify storefront

This commit is contained in:
Rami Bitar
2026-05-05 13:42:40 -04:00
parent ba8826030c
commit 62fbdead87
156 changed files with 1688 additions and 8293 deletions

View File

@@ -0,0 +1,16 @@
import { ComponentConfig } from "@reacteditor/core";
import { Package } from "lucide-react";
import { ProductDetailsView, type ProductDetailsProps } from "@/components/commerce/product-details";
export function createProductDetailsEditor(opts: {
productField: any;
}): ComponentConfig<ProductDetailsProps> {
return {
label: "Product details",
icon: <Package size={16} />,
category: "commerce",
defaultProps: { product: null },
fields: { product: { label: "Product", ...opts.productField } },
render: (props) => <ProductDetailsView {...props} />,
};
}