meshtastic/src/components/GiscusComponent/index.js

29 lines
777 B
JavaScript
Raw Normal View History

2024-08-14 12:36:15 -07:00
import React from "react";
import Giscus from "@giscus/react";
import { useColorMode } from "@docusaurus/theme-common";
2024-08-14 12:53:44 -07:00
/* trunk-ignore(biome/lint/style/noDefaultExport) */
2024-08-14 12:36:15 -07:00
export default function GiscusComponent() {
const { colorMode } = useColorMode();
return (
<Giscus
repo="meshtastic/meshtastic"
repoId="MDEwOlJlcG9zaXRvcnkzMzkzMDEyMjI="
category="Blog Post Comments"
categoryId="DIC_kwDOFDlTZs4Choq7"
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
/>
);
}