2023-10-23 23:11:59 +02:00
|
|
|
"use client"
|
2023-08-01 17:07:19 +02:00
|
|
|
|
2023-10-23 23:11:59 +02:00
|
|
|
import Giscus from "@giscus/react"
|
2023-08-01 17:07:19 +02:00
|
|
|
|
2023-10-23 23:11:59 +02:00
|
|
|
import { useTheme } from "@/theme/theme.client"
|
|
|
|
import type { CookiesStore } from "@/utils/constants"
|
2023-08-01 17:07:19 +02:00
|
|
|
|
|
|
|
interface BlogPostCommentsProps {
|
|
|
|
cookiesStore: CookiesStore
|
|
|
|
}
|
|
|
|
|
|
|
|
export const BlogPostComments = (props: BlogPostCommentsProps): JSX.Element => {
|
|
|
|
const { cookiesStore } = props
|
|
|
|
|
|
|
|
const theme = useTheme(cookiesStore)
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Giscus
|
2023-10-23 23:11:59 +02:00
|
|
|
id="comments"
|
|
|
|
repo="theoludwig/theoludwig"
|
|
|
|
repoId="MDEwOlJlcG9zaXRvcnkzNTg5NDg1NDQ="
|
|
|
|
category="General"
|
|
|
|
categoryId="DIC_kwDOFWUewM4CQ_WK"
|
|
|
|
mapping="pathname"
|
|
|
|
reactionsEnabled="1"
|
|
|
|
emitMetadata="0"
|
|
|
|
inputPosition="top"
|
2023-08-01 17:07:19 +02:00
|
|
|
theme={theme}
|
2023-10-23 23:11:59 +02:00
|
|
|
lang="en"
|
|
|
|
loading="lazy"
|
2023-08-01 17:07:19 +02:00
|
|
|
/>
|
|
|
|
)
|
|
|
|
}
|