import type { Component } from 'solid-js'
import type { PageProps } from '../pages/types'

import { PageContextBuiltInClientWithClientRouting } from 'vike/dist/esm/types'

export type PageContext = PageContextBuiltInClientWithClientRouting & {
  Page: (pageProps: PageProps) => Component
  pageProps: PageProps
  lng: string
  cookies: { [key: string]: string | number | undefined } | null
  documentProps?: {
    title?: string
    description?: string
  }
}
