1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-01 11:06:37 -04:00

bump next to 14.2.5

This commit is contained in:
2024-07-31 12:15:13 -04:00
parent 5fe420913e
commit fff106ffbb
6 changed files with 765 additions and 571 deletions

View File

@ -19,12 +19,21 @@ export type CommentsProps = ComponentPropsWithoutRef<typeof Wrapper> & {
const Comments = ({ title, ...rest }: CommentsProps) => {
const { activeTheme } = useTheme();
// fail silently if giscus isn't configured
if (!config.giscusConfig) {
console.warn("Giscus isn't configured in lib/config/index.js.");
return null;
}
// TODO: use custom `<Loading />` spinner component during suspense
return (
<Wrapper {...rest}>
<Giscus
{...(config.giscusConfig as GiscusProps)}
repo={config.githubRepo as GiscusProps["repo"]}
repoId={config.giscusConfig.repoId}
term={title}
category="Comments"
categoryId={config.giscusConfig.categoryId}
mapping="specific"
reactionsEnabled="1"
emitMetadata="0"