Add social type definitions

This commit is contained in:
Sat Naing
2022-09-22 21:15:48 +06:30
parent b8a08dc794
commit 0ad254347d
+31
View File
@@ -8,3 +8,34 @@ export interface Frontmatter {
featured: boolean; featured: boolean;
tags: string[]; tags: string[];
} }
export type SocialsObject = {
name: SocialMedia;
href: string;
active: boolean;
}[];
export type SocialIcons = {
[social in SocialMedia]: string;
};
export type SocialMedia =
| "Github"
| "Facebook"
| "Instagram"
| "Linkedin"
| "Mail"
| "Twitter"
| "Twitch"
| "YouTube"
| "WhatsApp"
| "Snapchat"
| "Pinterest"
| "TikTok"
| "CodePen"
| "Discord"
| "GitLab"
| "Reddit"
| "Skype"
| "Steam"
| "Telegram";