({
thread,
channels,
communities,
currentChannel,
currentCommunity,
isBot,
isSubDomainRouting,
settings,
permissions,
dms,
}: ThreadProps)
| 8 | import { useUsersContext } from '@linen/contexts/Users'; |
| 9 | |
| 10 | export function ThreadPage({ |
| 11 | thread, |
| 12 | channels, |
| 13 | communities, |
| 14 | currentChannel, |
| 15 | currentCommunity, |
| 16 | isBot, |
| 17 | isSubDomainRouting, |
| 18 | settings, |
| 19 | permissions, |
| 20 | dms, |
| 21 | }: ThreadProps) { |
| 22 | const ref = useRef<HTMLDivElement>(null); |
| 23 | |
| 24 | const seo = buildThreadSeo({ |
| 25 | isSubDomainRouting, |
| 26 | channelName: currentChannel.channelName, |
| 27 | settings, |
| 28 | thread, |
| 29 | }); |
| 30 | |
| 31 | return ( |
| 32 | <PageLayout |
| 33 | key={thread.id} |
| 34 | seo={{ |
| 35 | description: seo.description, |
| 36 | title: seo.title, |
| 37 | url: seo.url, |
| 38 | image: seo.image, |
| 39 | robotsMetaTag: seo.robotsMetaTag, |
| 40 | }} |
| 41 | currentChannel={currentChannel} |
| 42 | channels={channels} |
| 43 | communities={communities} |
| 44 | currentCommunity={currentCommunity} |
| 45 | settings={settings} |
| 46 | isSubDomainRouting={isSubDomainRouting} |
| 47 | permissions={permissions} |
| 48 | innerRef={ref} |
| 49 | dms={dms} |
| 50 | > |
| 51 | {buildStructureData({ thread, isSubDomainRouting, settings })} |
| 52 | <ThreadView |
| 53 | currentChannel={currentChannel} |
| 54 | currentCommunity={currentCommunity} |
| 55 | isSubDomainRouting={isSubDomainRouting} |
| 56 | permissions={permissions} |
| 57 | settings={settings} |
| 58 | thread={thread} |
| 59 | isBot={isBot} |
| 60 | useJoinContext={useJoinContext} |
| 61 | api={api} |
| 62 | useUsersContext={useUsersContext} |
| 63 | /> |
| 64 | </PageLayout> |
| 65 | ); |
| 66 | } |
nothing calls this directly
no test coverage detected