import { parseExhibitionDoc } from '@weco/common/services/prismic/exhibitions' ; import { Exhibition as DeprecatedExhibition } from '@weco/common/model/exhibitions' ; import { Exhibition } from '../../../types/exhibitions' ; import { ExhibitionPrismicDocument } from '../types/exhibitions' ; export function transformExhibition ( document ) { const exhibition = parseExhibitionDoc ( document ) ; return { ... exhibition , prismicDocument : document , } ; }