import { TrackerDefinition } from "./watcher.types";

export const trackerRegistry: TrackerDefinition[] = [
  {
    key: "happyfappy",
    label: "HappyFappy",
    cliSiteKey: "happyfappy",
    supportsRemoveBookmark: true,
  },
  {
    key: "privatehd",
    label: "PrivateHD",
    cliSiteKey: "privatehd",
    supportsRemoveBookmark: true,
  },
];

export const getTrackerDefinition = (key: string) => {
  return trackerRegistry.find((tracker) => tracker.key === key) ?? null;
};
