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

export interface Config {
  variant: 'constellation' | 'manifesto';
  title: LocalizedText;
  subtitle: LocalizedText;
}

export const configSchema: z.ZodType<Config> = z.object({
  variant: z.enum(['constellation', 'manifesto']),
  title: z.object({ he: z.string(), en: z.string() }),
  subtitle: z.object({ he: z.string(), en: z.string() }),
});

export const defaultConfig: Config = {
  variant: 'constellation',
  title: { he: '', en: '' },
  subtitle: { he: '', en: '' },
};

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