import type { SourceModule } from "../registry"; import { LinksConfig, LinksPayload, type LinksConfig as Config, type LinksPayload as Payload, } from "@/lib/schemas/sources/links"; // A static list of links (other web apps, bookmarks). No network — the payload // is just the configured list, so the card renders from the cached snapshot. export const linksModule: SourceModule = { kind: "links", label: "Links", keyless: true, defaultRefreshSeconds: 86_400, configSchema: LinksConfig, payloadSchema: LinksPayload, isConfigured: (config) => config.links.length > 0, async fetch({ config }) { return { links: config.links }; }, };