aboutsummaryrefslogtreecommitdiff
path: root/components/disqus.js
diff options
context:
space:
mode:
authorFactiven <[email protected]>2023-12-24 13:03:54 +0700
committerFactiven <[email protected]>2023-12-24 13:03:54 +0700
commit50a0f0240d7fef133eb5acc1bea2b1168b08e9db (patch)
tree307e09e505580415a58d64b5fc3580e9235869f1 /components/disqus.js
parentUpdate README.md (#104) (diff)
downloadmoopa-50a0f0240d7fef133eb5acc1bea2b1168b08e9db.tar.xz
moopa-50a0f0240d7fef133eb5acc1bea2b1168b08e9db.zip
migrate to typescript
Diffstat (limited to 'components/disqus.js')
-rw-r--r--components/disqus.js17
1 files changed, 0 insertions, 17 deletions
diff --git a/components/disqus.js b/components/disqus.js
deleted file mode 100644
index b814851..0000000
--- a/components/disqus.js
+++ /dev/null
@@ -1,17 +0,0 @@
-import { DiscussionEmbed } from "disqus-react";
-
-const DisqusComments = ({ post }) => {
- const disqusShortname = post.name || "your_disqus_shortname";
- const disqusConfig = {
- url: post.url,
- identifier: post.url, // Single post id
- title: `${post.title} - Episode ${post.episode}`, // Single post title
- };
-
- return (
- <div>
- <DiscussionEmbed shortname={disqusShortname} config={disqusConfig} />
- </div>
- );
-};
-export default DisqusComments;