) {
- if (disabled) {
- return (
-
-
- {children}
- {disabledAccesibilityText ? (
- {disabledAccesibilityText}
- ) : null}
-
- )
- }
-
- if (type === 'button') {
- return (
-
- )
- } else {
- return (
-
-
- {children}
-
- )
- }
-}
diff --git a/services/web/frontend/js/features/editor-left-menu/components/left-menu-mask.tsx b/services/web/frontend/js/features/editor-left-menu/components/left-menu-mask.tsx
deleted file mode 100644
index 9a2d068f07..0000000000
--- a/services/web/frontend/js/features/editor-left-menu/components/left-menu-mask.tsx
+++ /dev/null
@@ -1,39 +0,0 @@
-import { memo, useEffect, useRef, useState } from 'react'
-import { useLayoutContext } from '../../../shared/context/layout-context'
-import { useUserSettingsContext } from '@/shared/context/user-settings-context'
-
-export default memo(function LeftMenuMask() {
- const { setLeftMenuShown } = useLayoutContext()
- const { userSettings } = useUserSettingsContext()
- const { editorTheme, editorLightTheme, editorDarkTheme, overallTheme } =
- userSettings
- const [original] = useState({
- editorTheme,
- overallTheme,
- editorLightTheme,
- editorDarkTheme,
- })
- const maskRef = useRef(null)
-
- useEffect(() => {
- if (maskRef.current) {
- if (
- editorTheme !== original.editorTheme ||
- editorLightTheme !== original.editorLightTheme ||
- editorDarkTheme !== original.editorDarkTheme ||
- overallTheme !== original.overallTheme
- ) {
- maskRef.current.style.opacity = '0'
- }
- }
- }, [editorTheme, editorLightTheme, editorDarkTheme, overallTheme, original])
-
- return (
- // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
-