MCPcopy Create free account
hub / github.com/dabbott/react-native-express / Disqus

Function Disqus

components/Disqus.tsx:19–40  ·  view source on GitHub ↗
({
  identifier,
  title,
  shortname,
  stagingShortname,
}: Props)

Source from the content-addressed store, hash-verified

17}
18
19export default function Disqus({
20 identifier,
21 title,
22 shortname,
23 stagingShortname,
24}: Props) {
25 if (typeof window === 'undefined') return null
26
27 const name = isDev ? stagingShortname : shortname
28
29 if (!name) return null
30
31 const url = window.location.href
32
33 return (
34 <Container>
35 <PageLayout>
36 <DiscussionEmbed shortname={name} config={{ url, identifier, title }} />
37 </PageLayout>
38 </Container>
39 )
40}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected