import type { ClientSharedServerContext } from '@/types'; export const assignClientContext = ( props: Partial ) => ({ frontmatter: props.frontmatter ?? {}, pathname: props.pathname ?? '', headings: props.headings ?? [], readingTime: props.readingTime ?? { text: '', minutes: 0, time: 0, words: 0, }, filename: props.filename ?? '', }) as T;