({
thread,
currentChannel,
currentCommunity,
isBot,
isSubDomainRouting,
settings,
permissions,
useJoinContext,
useUsersContext,
api,
}: Props)
| 25 | } |
| 26 | |
| 27 | export default function ThreadView({ |
| 28 | thread, |
| 29 | currentChannel, |
| 30 | currentCommunity, |
| 31 | isBot, |
| 32 | isSubDomainRouting, |
| 33 | settings, |
| 34 | permissions, |
| 35 | useJoinContext, |
| 36 | useUsersContext, |
| 37 | api, |
| 38 | }: Props) { |
| 39 | return ( |
| 40 | <div className={styles.wrapper}> |
| 41 | <Content |
| 42 | thread={thread} |
| 43 | currentChannel={currentChannel} |
| 44 | currentCommunity={currentCommunity} |
| 45 | isBot={isBot} |
| 46 | isSubDomainRouting={isSubDomainRouting} |
| 47 | settings={settings} |
| 48 | permissions={permissions} |
| 49 | useJoinContext={useJoinContext} |
| 50 | useUsersContext={useUsersContext} |
| 51 | api={api} |
| 52 | fetchMentions={(term?: string) => { |
| 53 | if (!term) return Promise.resolve([]); |
| 54 | return api.fetchMentions(term, currentCommunity.id); |
| 55 | }} |
| 56 | /> |
| 57 | </div> |
| 58 | ); |
| 59 | } |
nothing calls this directly
no test coverage detected