๐Ÿ“ฆ 3b1b / 3Blue1Brown.com

๐Ÿ“„ index.js ยท 26 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26import { useContext } from "react";
import { DiscussionEmbed } from "disqus-react";
import { disqus } from "../../data/site.yaml";
import Section from "../Section";
import { PageContext } from "../../pages/_app";

// disqus comment section component
const Disqus = () => {
  const { title } = useContext(PageContext);
  return (
    <Section>
      <h1 id="discussion">Discussion</h1>
      <DiscussionEmbed
        shortname={disqus}
        config={{
          url: "",
          identifier: "",
          title: title,
        }}
      />
    </Section>
  );
};

export default Disqus;