overleaf/services/web/frontend/js/features/source-editor/utils/sub-view.ts

5 lines
215 B
TypeScript
Raw Normal View History

import { SubView } from '../../../../../types/review-panel/review-panel'
export const isCurrentFileView = (view: SubView) => view === 'cur_file'
export const isOverviewView = (view: SubView) => view === 'overview'