export type CampaignVariant = {
  key: string;
  destinationPath: string;
  weight: number;
  label: string;
};

export type CampaignRoute = {
  slug: string;
  source: string;
  campaign: string;
  creative: string;
  adType: string;
  experimentName: string;
  variants: CampaignVariant[];
};

export const solarCampaignRoutes: Record<string, CampaignRoute> = {
  "solar-high-bill": {
    slug: "solar-high-bill",
    source: "exoclick",
    campaign: "solar-high-bill-homeowners",
    creative: "solar-campaign-1-core",
    adType: "banner",
    experimentName: "Solar Campaign 1 - High Bill Homeowners",
    variants: [
      {
        key: "solar1",
        destinationPath: "/solar1",
        weight: 60,
        label: "Bill Pain",
      },
      {
        key: "solar2",
        destinationPath: "/solar2",
        weight: 40,
        label: "Homeowner Qualifier",
      },
    ],
  },
};

export function getSolarCampaignRoute(slug: string): CampaignRoute | null {
  return solarCampaignRoutes[slug] || null;
}
