Skip to content

Commit 151746e

Browse files
committed
wip: follow component
1 parent 9c745b1 commit 151746e

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

src/Follow.tsx

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import { CSSProperties } from "@mui/styled-engine";
2+
import { type } from "os";
3+
import { forwardRef, memo } from "react";
4+
import { fr } from "./fr";
5+
import { RegisteredLinkProps } from "./link";
6+
7+
export type FollowProps = {
8+
id?: string;
9+
className?: string;
10+
classes?: Partial<Record<"root" | "content", string>>;
11+
socials?: FollowProps.SocialButton[];
12+
style?: CSSProperties;
13+
};
14+
15+
export namespace FollowProps {
16+
export type SocialType =
17+
| "facebook"
18+
| "twitter"
19+
| "twitter-x"
20+
| "linkedin"
21+
| "mastodon"
22+
| "mail"
23+
| "copy"
24+
| "youtube"
25+
| "dailymotion"
26+
| "instagram"
27+
| "github"
28+
| "tiktok"
29+
| "snapchat"
30+
| "telegram"
31+
| "twitch"
32+
| "vimeo";
33+
export type SocialButton = {
34+
type: SocialType;
35+
linkProps: RegisteredLinkProps;
36+
};
37+
}
38+
39+
export const Follow = memo(
40+
forwardRef<HTMLDivElement, FollowProps>((props, ref) => {
41+
const { id: props_id } = props;
42+
43+
return null;
44+
})
45+
);

0 commit comments

Comments
 (0)