mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
[e2e] Remove old editor E2E tests GitOrigin-RevId: 960c5cd5f17c2a5bae225ecb53fa0eed76938939
17 lines
412 B
TypeScript
17 lines
412 B
TypeScript
import { useUserSettingsContext } from '@/shared/context/user-settings-context'
|
|
|
|
export const canUseNewEditor = () => {
|
|
return true
|
|
}
|
|
|
|
export const useIsNewEditorEnabled = () => {
|
|
return canUseNewEditor()
|
|
}
|
|
|
|
export const useIsNewToNewEditor = () => {
|
|
const { userSettings } = useUserSettingsContext()
|
|
const newEditor = useIsNewEditorEnabled()
|
|
|
|
return newEditor && !userSettings.enableNewEditorLegacy
|
|
}
|