Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 

24 Zeilen
719 B

  1. import './social-icons.scss';
  2. import {createElement} from "../../_global/scripts/helpers";
  3. import {socialIconsBookmark, socialIconsPlatforms} from "./SocialIconsData";
  4. export const createSocialIcons =
  5. ({
  6. items = socialIconsPlatforms,
  7. title = '',
  8. }) => {
  9. const ul = createElement('ul', ['social-icons']);
  10. items.map((item) => {
  11. const li = createElement('li', [], null, ul);
  12. const a = createElement('a', ['social-share', item.name.toLowerCase()], null, li);
  13. a.href = item.href;
  14. if (title && title.length > 0) {
  15. a.title = title + item.name;
  16. }
  17. if (item.onClick && item.onClick.length > 0) {
  18. a.onclick = item.onClick;
  19. }
  20. })
  21. return ul;
  22. }