console/packages/web/docs/src/components/configured-giscus.tsx
Piotr Monwid-Olechnowicz 38eaa1d0ea
Hive Docs x Nextra 4 (#6089)
Co-authored-by: Dimitri POSTOLOV <dmytropostolov@gmail.com>
2025-01-27 14:58:08 +00:00

20 lines
465 B
TypeScript

'use client';
import { usePathname } from 'next/navigation';
import { Giscus } from '@theguild/components';
export function ConfiguredGiscus() {
const route = usePathname();
return (
<Giscus
// ensure giscus is reloaded when client side route is changed
key={route}
repo="graphql-hive/platform"
repoId="R_kgDOHWr5kA"
category="Docs Discussions"
categoryId="DIC_kwDOHWr5kM4CSDSS"
mapping="pathname"
/>
);
}