--- import { themeConfig } from '@/config' import { ClientRouter } from 'astro:transitions' import ThemeManager from '@/components/ui/ThemeManager.astro' import TransitionWrapper from '@/components/layout/TransitionWrapper.astro' import type { LayoutProps } from '@/types' type Props = LayoutProps const { type = 'page' } = Astro.props const language = themeConfig.site.language || 'en-US' const contentWidth = themeConfig.general.contentWidth const fadeAnimation = themeConfig.general.fadeAnimation const widthValue = Math.min(parseFloat(contentWidth), 50) const shouldUseCustomWidth = widthValue > 25 const finalWidth = shouldUseCustomWidth ? `${widthValue}rem` : '25rem' ---