I am trying to add social media icons to my react website dynamically and I have found icons for Facebook, Instagram, Youtube and Twitter. But I cant add the TikTok logo.
The MUI react material icons directory (see here) doesn't seem to have a TikTok Icon however this website seems to reference that there is one.
When trying to import the icon however it says it does not exist. Here is a sample of my code:
import { Instagram, TiktokIcon, Facebook, YouTube, Twitter } from "@mui/icons-material"
export const socialMediaLinks = [
{
platform: 'Instagram',
link: '',
icon: <Instagram/>
},
{
platform: 'Tiktok',
link: '',
icon: <TiktokIcon/>
},
{
platform: 'Facebook',
link: '',
icon: <Facebook/>
},
{
platform: 'Youtube',
link: '',
icon: <YouTube/>
},
{
platform: 'Twitter',
link: '',
icon: <Twitter/>
}
]
{socialMediaLinks.map((social) => (
<a href={social.link}>
<Icon>
{social.icon}
</Icon>
</a>
))}
in this code all the other icons appear, apart from the TikTok one.
Is there a way to do this straight from MUI Icons or do I have to import the TikTok Icon from elsewhere? I don't particularly want to do this as it makes it harder to keep formatting consistent.