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,26 @@
import { ComponentConfig } from '@reacteditor/core';
import { Search } from 'lucide-react';
import SearchResults from '@/components/shopify/search-results';
export type SearchResultsBlockProps = {
title?: string;
};
/**
* The result set comes from the `?q=` param and the shopper's own filter and
* sort choices, so the heading is the only thing left for the editor to own.
*/
const searchResultsEditor: ComponentConfig<SearchResultsBlockProps> = {
label: 'Search results',
icon: <Search size={16} />,
category: 'commerce',
defaultProps: {
title: 'Search',
},
fields: {
title: { label: 'Title', type: 'text', contentEditable: true },
},
render: (props) => <SearchResults {...props} />,
};
export default searchResultsEditor;