import type { SourceModule } from "../registry"; import { fetchRss } from "../rss"; import { NewsConfig, NewsPayload, type NewsConfig as Config, type NewsPayload as Payload, } from "@/lib/schemas/sources/news"; export const newsModule: SourceModule = { kind: "news", label: "News", keyless: true, defaultRefreshSeconds: 1800, configSchema: NewsConfig, payloadSchema: NewsPayload, isConfigured: (config) => config.feeds.length > 0, fetch: ({ config, signal }) => fetchRss(config, signal), };