diff --git a/app/components/GiscusComments.tsx b/app/components/GiscusComments.tsx index 5883c78..cfde287 100644 --- a/app/components/GiscusComments.tsx +++ b/app/components/GiscusComments.tsx @@ -1,12 +1,15 @@ -'use client'; +"use client"; -import Giscus from '@giscus/react'; +import Giscus from "@giscus/react"; interface GiscusCommentsProps { className?: string; + docId?: string | null; } -export function GiscusComments({ className }: GiscusCommentsProps) { +export function GiscusComments({ className, docId }: GiscusCommentsProps) { + const useDocId = typeof docId === "string" && docId.trim().length > 0; + return (
- +