({ author, className })
| 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}'s {typeMapped} |
| 24 | </Button> |
| 25 | </Link> |
| 26 | ) |
| 27 | } |
| 28 | |
| 29 | export default SocialButton |
nothing calls this directly
no outgoing calls
no test coverage detected