import React from 'react';
import { Box, Typography } from '@mui/material';
import InstagramIcon from '@mui/icons-material/Instagram';
import FacebookIcon from '@mui/icons-material/Facebook';
import TwitterIcon from '@mui/icons-material/Twitter';
const SocialMedia = () => {
const socialMedia = [
{ icon: , name: 'Instagram', link: 'https://www.instagram.com/amber.officials/?hl=en' },
{ icon: , name: 'Facebook', link: 'https://www.facebook.com/amber.officials/' },
{ icon: , name: 'Twitter', link: 'https://twitter.com/amber.officials' },
];
return (
{socialMedia.map((media, index) => (
{
window.open(media.link, '_blank')
}}
sx={{
display: 'flex',
flexDirection: { xs: 'column', sm: 'row' }, // Stack icon and text on small screens
alignItems: 'center',
gap: 1,
}}
>
{media.icon}
{media.name}
))}
);
};
export default SocialMedia;