meshtastic/src/components/GiscusComponent/index.js

28 lines
705 B
JavaScript
Raw Normal View History

2024-08-14 12:36:15 -07:00
import { useColorMode } from "@docusaurus/theme-common";
2024-08-14 12:56:24 -07:00
import Giscus from "@giscus/react";
import React from "react";
2024-08-14 12:36:15 -07:00
export default function GiscusComponent() {
const { colorMode } = useColorMode();
return (
<Giscus
2024-10-29 07:12:36 -07:00
repo="meshtastic/discussions"
repoId="R_kgDONDs6gA"
2024-08-14 12:36:15 -07:00
category="Blog Post Comments"
2024-10-29 07:12:36 -07:00
categoryId="DIC_kwDONDs6gM4Cjy3h"
2024-08-14 12:36:15 -07:00
mapping="pathname"
term="specific-term" //If you didn't select "Discussion title contains a specific term", omit.
strict="1"
reactionsEnabled="1"
emitMetadata="0"
inputPosition="top"
theme={colorMode}
lang="en"
loading="lazy"
crossorigin="anonymous"
async
/>
);
}