Also drop the color and leftSideBarVisible overrides from PageEditor. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014xjLo7mFxZXfPDCHuKX4Dz
26 lines
717 B
TypeScript
26 lines
717 B
TypeScript
import { ComponentConfig } from '@reacteditor/core';
|
|
import { Search } from 'lucide-react';
|
|
import SearchResults from '@/components/shopify/search-results';
|
|
|
|
export type SearchResultsBlockProps = {
|
|
title?: string;
|
|
placeholder?: string;
|
|
};
|
|
|
|
const searchResultsEditor: ComponentConfig<SearchResultsBlockProps> = {
|
|
label: 'Search results',
|
|
icon: <Search size={16} />,
|
|
category: 'commerce',
|
|
defaultProps: {
|
|
title: 'Search',
|
|
placeholder: 'Search products',
|
|
},
|
|
fields: {
|
|
title: { label: 'Title', type: 'text', contentEditable: true },
|
|
placeholder: { label: 'Search placeholder', type: 'text' },
|
|
},
|
|
render: (props) => <SearchResults {...props} />,
|
|
};
|
|
|
|
export default searchResultsEditor;
|