mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
Add social type definitions
This commit is contained in:
@@ -8,3 +8,34 @@ export interface Frontmatter {
|
||||
featured: boolean;
|
||||
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";
|
||||
|
||||
Reference in New Issue
Block a user