import type React from "react";
import type { FooterSocial } from "@/features/shared";
import {
  TikTokIcon,
  XTwitterIcon,
  YouTubeIcon,
  InstagramIcon,
} from "./footerIcons";

/**
 * The footer's fixed data: which social accounts it can show (each only when
 * the CMS has a URL for it) and the three core pages that are always linked.
 *
 * Separated from the component because none of it is presentation — it is the
 * footer's content model, and it changes for entirely different reasons than
 * the markup does.
 */
export const SOCIAL_LINKS: Array<{
  key: keyof FooterSocial;
  label: string;
  className: string;
  Icon: ({ className }: { className?: string }) => React.ReactElement;
}> = [
  {
    key: "tiktok",
    label: "TikTok",
    className:
      "bg-white w-9 h-9 rounded-full text-[#1A1A66] flex items-center justify-center text-[25px]",
    Icon: TikTokIcon,
  },
  {
    key: "twitter",
    label: "Twitter / X",
    className:
      "bg-white w-9 h-9 rounded-full text-[#1A1A66] flex items-center justify-center text-[25px]",
    Icon: XTwitterIcon,
  },
  {
    key: "youtube",
    label: "YouTube",
    className: "text-[46px] flex items-center",
    Icon: YouTubeIcon,
  },
  {
    key: "instagram",
    label: "Instagram",
    className:
      "bg-white w-9 h-9 rounded-lg text-[#1A1A66] flex items-center justify-center text-[25px]",
    Icon: InstagramIcon,
  },
];

export { CORE_PAGE_LINKS } from "./footerPages";
