import React from 'react'; import styled from 'styled-components'; import { color, space } from 'styled-system'; import { MaterialAdd, MaterialLocalPostOffice, MaterialNotifications, MaterialRssFeed, SocialInstagram, SocialLinkedin, SocialTwitter, SocialXing, } from '@t3n/icons'; import { ThemeProps } from '@t3n/theme'; import Box from '../Box'; export interface LegacySocialBarProps { className?: string; isInFooter?: boolean; } export type SocialLinkType = { title: string; url: string; icon: JSX.Element; rel?: string; target?: string; }[]; const OldFacebookIcon: React.FC = () => ( ); const SocialLink = styled.a` text-decoration: none; ${({ theme }) => space({ pl: '12px', theme })} ${({ theme }) => color({ theme, color: 'text.secondary' })}; :last-child { ${({ theme }) => space({ pl: 2, theme })} } > svg:hover, > svg:focus { fill: ${({ theme }: ThemeProps) => theme.colors.text.highlight}; text-decoration: none; } `; const legacySocialLinks: SocialLinkType = [ { title: 'Facebook', url: 'https://facebook.com/t3nMagazin', icon: , target: '_blank', }, { title: 'Instagram', url: 'https://instagram.com/t3n_magazin/', icon: , target: '_blank', }, { title: 'Twitter', url: 'https://twitter.com/t3n', icon: , target: '_blank', }, { title: 'LinkedIn', url: 'https://linkedin.com/company/t3n-magazin-yeebase-media-gmbh/', icon: , target: '_blank', }, { title: 'Xing', url: 'https://xing.com/news/pages/t3n-magazin-67', icon: , target: '_blank', }, { title: 't3n Newsletter', url: '/info/t3n-newsletter/', icon: , rel: 'follow', }, { title: 'Notifications', url: '/info/push-notifications/', icon: , rel: 'follow', }, { title: 't3n als RSS abonnieren', url: '/social-media#RSS-Feeds:_Immer_up_to_date', icon: , rel: 'follow', }, { title: 'Folge t3n auf deinen Lieblingskanälen', url: '/social-media/', icon: , rel: 'follow', }, ]; const LegacySocialBar: React.FC = ({ className, isInFooter, }) => ( {legacySocialLinks.map((link) => ( {link.icon} ))} ); export default LegacySocialBar;