import { parsePage } from '@weco/common/services/prismic/pages' ; import { Page as DeprecatedPage } from '@weco/common/model/pages' ; import { Page } from '../../../types/pages' ; import { PagePrismicDocument } from '../types/pages' ; export function transformPage ( document ) { const page = parsePage ( document ) ; return { ... page , prismicDocument : document , } ; }