import type { SourceModule } from "../registry"; import { fetchRss } from "../rss"; import { FeedsConfig, FeedsPayload, type FeedsConfig as Config, type FeedsPayload as Payload, } from "@/lib/schemas/sources/feeds"; // "My Feeds" — the user's personal RSS subscriptions, separate from the curated // News card. Same RSS fetch; distinct kind so it gets its own card + config. export const feedsModule: SourceModule = { kind: "feeds", label: "My Feeds", keyless: true, defaultRefreshSeconds: 1800, configSchema: FeedsConfig, payloadSchema: FeedsPayload, isConfigured: (config) => config.feeds.length > 0, fetch: ({ config, signal }) => fetchRss(config, signal), };