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

export interface Config {
  body: LocalizedText;
  background: 'neutral' | 'brand' | 'subtle';
}

export const configSchema: z.ZodType<Config> = z.object({
  body: z.object({ he: z.string(), en: z.string() }),
  background: z.enum(['neutral', 'brand', 'subtle']),
});

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

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