"use client";
import { j as o } from "../../../node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.mjs";
import l from "../../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.mjs";
import "react";
import { ReactComponent as u } from "../../assets/images/DiscordFilled.svg.mjs";
import { ReactComponent as p } from "../../assets/images/Youtube.svg.mjs";
import { ReactComponent as c } from "../../assets/images/Globe.svg.mjs";
import { ReactComponent as d } from "../../assets/images/X.svg.mjs";
import f from "../Button/index.mjs";
import e from "./SocialLinks.module.scss.mjs";
const N = (s) => {
  switch (s) {
    case "website":
      return { icon: c, className: e.websiteIcon };
    case "twitter":
      return { icon: d, className: e.twitterIcon };
    case "discord":
      return { icon: u, className: e.discordIcon };
    case "youtube":
      return { icon: p, className: e.youtubeIcon };
    default:
      return { icon: c, className: e.websiteIcon };
  }
}, R = ({
  socialLinks: s,
  className: n,
  ...a
}) => /* @__PURE__ */ o.jsx("div", { className: l(e.socialLinks, n), ...a, children: s.map((t, i) => {
  const { icon: r, className: m } = N(t.type);
  return /* @__PURE__ */ o.jsx(
    "a",
    {
      href: t.url,
      target: "_blank",
      rel: "noopener noreferrer",
      children: /* @__PURE__ */ o.jsx(f, { type: "secondary", size: "icon", children: r ? /* @__PURE__ */ o.jsx(r, { className: m }) : null })
    },
    i
  );
}) });
export {
  R as default
};
//# sourceMappingURL=SocialLinks.mjs.map
