import { memo } from "react"; import { useTheme } from "next-themes"; import classNames from "classnames"; import { Giscus } from "@giscus/react"; import { giscusConfig } from "../../lib/config"; import type { GiscusProps } from "@giscus/react"; import styles from "./Comments.module.css"; export type CommentsProps = JSX.IntrinsicElements["div"] & { title: string; }; const Comments = ({ title, className, ...rest }: CommentsProps) => { const { resolvedTheme } = useTheme(); return (