export function fallbackEntity(entity, view) {
    return {
        type: entity.type,
        slug: entity.slug,
        tags: entity.tags,
        ...entity.data,
        _fallback: true,
        _type: entity.type,
        _view: view,
    };
}
export function fallbackSection(section, view) {
    return {
        type: 'section',
        anchor: section.anchor,
        pagePath: section.pagePath,
        headingPath: section.headingPath,
        headingText: section.headingText,
        headingLevel: section.headingLevel,
        lineStart: section.lineStart,
        lineEnd: section.lineEnd,
        _fallback: true,
        _type: 'section',
        _view: view,
    };
}
//# sourceMappingURL=fallback.js.map