--- import { defaultLocale, themeConfig } from '@/config' import { giscusLocaleMap } from '@/i18n/config' const { repo = '', repoID = '', category = '', categoryID = '', mapping = 'pathname', strict = '0', reactionsEnabled = '1', emitMetadata = '0', inputPosition = 'bottom', } = themeConfig.comment?.giscus ?? {} const siteUrl = themeConfig.site.url const shouldRender = Boolean(repo && repoID && categoryID) --- {shouldRender && (
)}