Add React editor project

This commit is contained in:
Rami Bitar
2026-08-09 16:00:10 -04:00
parent 909d99251a
commit 63ecc5e284
212 changed files with 20655 additions and 11571 deletions
@@ -0,0 +1,34 @@
import { ComponentConfig } from '@reacteditor/core';
import { Receipt } from 'lucide-react';
import AccountOrders, {
type AccountOrdersProps,
} from '@/components/shopify/account-orders';
const accountOrdersEditor: ComponentConfig<AccountOrdersProps> = {
label: 'Order history',
icon: <Receipt size={16} />,
category: 'account',
defaultProps: {
title: 'Order history',
signedOutMessage: 'Sign in to see your orders.',
emptyMessage: "You haven't placed any orders yet.",
limit: 20,
},
fields: {
title: { label: 'Title', type: 'text', contentEditable: true },
signedOutMessage: {
label: 'Signed-out message',
type: 'text',
contentEditable: true,
},
emptyMessage: {
label: 'Empty message',
type: 'text',
contentEditable: true,
},
limit: { label: 'Orders shown', type: 'number', min: 1, max: 50 },
},
render: (props) => <AccountOrders {...props} />,
};
export default accountOrdersEditor;