You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.1 KiB

  1. import { SocialType } from "@/shared/SocialsShare";
  2. import React, { FC } from "react";
  3. export interface SocialsList1Props {
  4. className?: string;
  5. }
  6. const socials: SocialType[] = [
  7. { name: "Facebook", icon: "lab la-facebook-square", href: "#" },
  8. { name: "Twitter", icon: "lab la-twitter", href: "#" },
  9. { name: "Youtube", icon: "lab la-youtube", href: "#" },
  10. { name: "Instagram", icon: "lab la-instagram", href: "#" },
  11. ];
  12. const SocialsList1: FC<SocialsList1Props> = ({ className = "space-y-2.5" }) => {
  13. const renderItem = (item: SocialType, index: number) => {
  14. return (
  15. <a
  16. href={item.href}
  17. className="flex items-center text-2xl text-neutral-700 hover:text-black dark:text-neutral-300 dark:hover:text-white leading-none space-x-2 group"
  18. key={index}
  19. >
  20. <i className={item.icon}></i>
  21. <span className="hidden lg:block text-sm">{item.name}</span>
  22. </a>
  23. );
  24. };
  25. return (
  26. <div className={`nc-SocialsList1 ${className}`} data-nc-id="SocialsList1">
  27. {socials.map(renderItem)}
  28. </div>
  29. );
  30. };
  31. export default SocialsList1;