Prevent two composers from being shown (#35006)

This commit is contained in:
Echo authored and GitHub committed 2025-06-11 11:12:39 +00:00
1 parent 629bb74451
commit 8cf246e4d3
4 files changed
+70 -65

No files matched your search

@@ -0,0 +1,13 @@
import type { LayoutType } from '../is_mobile';
import { useAppSelector } from '../store';
export const useLayout = () => {
const layout = useAppSelector(
(state) => state.meta.get('layout') as LayoutType,
);
return {
singleColumn: layout === 'single-column' || layout === 'mobile',
layout,
};
};