({
identifier,
title,
shortname,
stagingShortname,
}: Props)
| 17 | } |
| 18 | |
| 19 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected