Initial commit
This commit is contained in:
23
editor.config.tsx
Normal file
23
editor.config.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import { Config } from "@reacteditor/core";
|
||||
import heroConfig from "@/components/hero/hero.config";
|
||||
import { HeroProps } from "@/components/hero/hero";
|
||||
|
||||
const categories = {
|
||||
hero: { title: "Hero" },
|
||||
};
|
||||
|
||||
export type Components = {
|
||||
hero: HeroProps;
|
||||
};
|
||||
|
||||
export type UserConfig = Config<{
|
||||
components: Components;
|
||||
categories: ["hero"];
|
||||
}>;
|
||||
|
||||
export const appConfig: UserConfig = {
|
||||
categories,
|
||||
components: {
|
||||
hero: heroConfig,
|
||||
} as any,
|
||||
};
|
||||
Reference in New Issue
Block a user