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

export interface Config {
  title?: LocalizedText;
  emptyStateLabel: LocalizedText;
}

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

export const defaultConfig: Config = {
  title: undefined,
  emptyStateLabel: {
    he: 'טרם נרשמת למועדון לקוחות',
    en: "You haven't joined any club yet",
  },
};

export const type = 'club-stories' as const;
export const category = 'custom' as const;
export const labelKey = 'module_labels.club-stories' as const;
