page-wrapper.tsx

src/components/page-wrapper.tsx
import 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: ReactNode
metadata?: PageMetadata
}
// Process structured data to resolve image URLs via studioUrl
function 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

Support

Talk to the developers of this project to learn more

We have been building professional websites for big clients for over 15 years. Gallop templates and blocks is our best foundation for SEO websites and web apps.

© 2026 Web Plant Media, LLC