--- import { getNextLangUrl, getPostNextLangUrl } from '@/i18n/lang' import { isPostPage } from '@/i18n/path' interface Props { supportedLangs: string[] } const { supportedLangs } = Astro.props const currentPath = Astro.url.pathname const isPost = isPostPage(currentPath) const nextUrl = isPost ? getPostNextLangUrl(currentPath, supportedLangs) : getNextLangUrl(currentPath) ---