-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsocialMedia.tsx
More file actions
40 lines (35 loc) · 1.36 KB
/
socialMedia.tsx
File metadata and controls
40 lines (35 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import Link from 'next/link'
import Box from '@mui/material/Box'
import GitHubIcon from '@mui/icons-material/GitHub'
import YouTubeIcon from '@mui/icons-material/YouTube'
import FacebookIcon from '@mui/icons-material/FacebookRounded'
import TwitterIcon from '@mui/icons-material/Twitter'
import LinkedInIcon from '@mui/icons-material/LinkedIn'
import InstagramIcon from '@mui/icons-material/Instagram'
const socialMedia = [
{ Icon: GitHubIcon, path: 'https://github.com/JavaScriptForEverything' },
{ Icon: YouTubeIcon, path: 'https://www.youtube.com/@JavaScriptForEverything' },
{ Icon: LinkedInIcon, path: 'https://www.linkedin.com/in/javascriptforeverything/' },
{ Icon: TwitterIcon, path: 'https://twitter.com/JSforEverything' },
{ Icon: FacebookIcon, path: 'https://www.facebook.com/JavaScriptForEverything' },
{ Icon: InstagramIcon, path: 'https://www.instagram.com/javascriptforeverything/' },
// { icon: <InstagramIcon fontSize='large' />, path: 'https://www.instagram.com/javascriptforeverything/' },
]
const SocialMedia = () => {
return (
<>
<Box sx={{display: 'flex', justifyContent:'center', gap: 2, my: 2 }}>
{socialMedia.map(({ Icon, path}, key) => <Link key={key}
href={path}
passHref
style={{ color: 'inherit' }}
target='_blank'
>
<Icon fontSize='large' />
</Link>
)}
</Box>
</>
)
}
export default SocialMedia