import { z } from 'zod';

export interface Config {
  limit: number;
  windowHours: number;
}

export const configSchema: z.ZodType<Config> = z.object({
  limit: z.number().int().min(5).max(30),
  windowHours: z.number().int().min(1).max(24),
});

export const defaultConfig: Config = {
  limit: 15,
  windowHours: 6,
};

export const type = 'ticker-strip' as const;
export const category = 'custom' as const;
export const labelKey = 'module_labels.ticker-strip' as const;
