import { ComponentConfig } from '@reacteditor/core'; import type { ShopifyProduct } from '@reacteditor/plugin-shopify'; import { Sparkles } from 'lucide-react'; import ProductRecommendations from '@/components/shopify/product-recommendations'; export type ProductRecommendationsBlockProps = { title?: string; product?: ShopifyProduct | null; limit?: number; }; const productRecommendationsEditor: ComponentConfig = { label: 'Recommended products', icon: , category: 'commerce', defaultProps: { title: 'You May Also Like', product: null, limit: 4, }, fields: { title: { label: 'Title', type: 'text', contentEditable: true }, product: { label: 'Seed product', // Empty follows the `[handle]` route segment; Shopify picks the rest. type: 'shopifyProduct', } as any, limit: { label: 'Products shown', type: 'number', min: 2, max: 12 }, }, render: ({ title, product, limit }) => ( ), }; export default productRecommendationsEditor;