( props: Pick<ServerInviteProps, 'server' | 'channel' | 'location'>, )
| 31 | }; |
| 32 | |
| 33 | export const ServerInviteTitle = ( |
| 34 | props: Pick<ServerInviteProps, 'server' | 'channel' | 'location'>, |
| 35 | ) => { |
| 36 | return ( |
| 37 | <TrackLink |
| 38 | href={getServerHomepageUrl(props.server)} |
| 39 | eventName={'Community Page Link Click'} |
| 40 | eventData={{ |
| 41 | 'Link Location': props.location, |
| 42 | ...serverToAnalyticsData(props.server), |
| 43 | ...(props.channel && channelToAnalyticsData(props.channel)), |
| 44 | }} |
| 45 | className="text-left font-header text-lg font-bold hover:text-primary/75 hover:underline" |
| 46 | > |
| 47 | {props.server.name} |
| 48 | </TrackLink> |
| 49 | ); |
| 50 | }; |
| 51 | |
| 52 | export const ChannelIcon = ({ |
| 53 | channelType, |
nothing calls this directly
no test coverage detected