mirror of
https://github.com/graphql-hive/console
synced 2026-04-21 14:37:17 +00:00
20 lines
465 B
TypeScript
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"
|
|
/>
|
|
);
|
|
}
|