src/components/page-wrapper.tsximport Script from 'next/script'import { defaultStructuredData } from '@/app/metadata'import { studioUrl } from '@/utils/studio-helpers'import type { ReactNode } from 'react'import type { PageMetadata } from '@/utils/page-helpers'interface PageWrapperProps {children: ReactNodemetadata?: PageMetadata}// Process structured data to resolve image URLs via studioUrlfunction processStructuredData(data: unknown): unknown {if (Array.isArray(data)) {return data.map(processStructuredData)}if (data && typeof data === 'object') {const result: Record<string, unknown> = {}for (const [key, value] of Object.entries(data)) {if (key === 'image' && typeof value === 'string') {
Showing the first 20 lines.
Get full code