--- import { themeConfig } from '@/config' import { getWalineLang } from '@/utils/i18n/ui' const { serverURL = '', emoji = [], search = false, imageUploader = false, } = themeConfig.comment?.waline ?? {} const currentPath = Astro.url.pathname const defaultLocale = themeConfig.global.locale const walineLang = getWalineLang(currentPath, defaultLocale) const walineConfigJson = JSON.stringify({ serverURL, lang: walineLang, emoji, search, imageUploader, }) const { light: { primary: lightPrimary, secondary: lightSecondary, background: lightBackground }, dark: { primary: darkPrimary, secondary: darkSecondary, background: darkBackground }, } = themeConfig.color ---