MCPcopy Create free account
hub / github.com/ShaanCoding/makeread.me / SocialButton

Function SocialButton

frontend/components/common/SocialButton.tsx:11–27  ·  view source on GitHub ↗
({ author, className })

Source from the content-addressed store, hash-verified

9 author: IUser
10 className?: string
11}> = ({ author, className }) => {
12 const {
13 url: { url, _type },
14 name,
15 } = author
16
17 const typeMapped = _type === "Other" ? "Website" : _type
18
19 return (
20 <Link href={url}>
21 <Button className={twMerge(className)}>
22 <SocialMediaIcon url={url} />
23 View {name}&apos;s {typeMapped}
24 </Button>
25 </Link>
26 )
27}
28
29export default SocialButton

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected