import { z } from 'zod';
import type { LocalizedText } from '@/server/page-layout/types';

export interface Config {
  body: LocalizedText;
}

export const configSchema: z.ZodType<Config> = z.object({
  body: z.object({ he: z.string(), en: z.string() }),
});

export const defaultConfig: Config = {
  body: { he: '', en: '' },
};

export const type = 'rich-text-content' as const;
export const category = 'content' as const;
export const labelKey = 'module_labels.rich-text-content' as const;
