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,
};
