|
|
@@ -1,3 +1,4 @@
|
|
|
+import type { IPage } from '~/interfaces/page';
|
|
|
import { useIsContainerFluid } from '~/stores/context';
|
|
|
import { useSWRxCurrentPage } from '~/stores/page';
|
|
|
import { useEditorMode } from '~/stores/ui';
|
|
|
@@ -5,14 +6,6 @@ import { useEditorMode } from '~/stores/ui';
|
|
|
export const useEditorModeClassName = (): string => {
|
|
|
const { getClassNamesByEditorMode } = useEditorMode();
|
|
|
|
|
|
- // TODO: Enable `editing-sidebar` class somehow
|
|
|
- // https://redmine.weseek.co.jp/issues/111527
|
|
|
- // const classNames: string[] = [];
|
|
|
- // if (currentPage != null) {
|
|
|
- // const isSidebar = currentPage.path === '/Sidebar';
|
|
|
- // classNames.push(...getClassNamesByEditorMode(/* isSidebar */));
|
|
|
- // }
|
|
|
-
|
|
|
return `${getClassNamesByEditorMode().join(' ') ?? ''}`;
|
|
|
};
|
|
|
|