1
0
Fork 0
forked from gitea/nas

Prevent two composers from being shown (#35006)

This commit is contained in:
Echo 2025-06-11 13:12:39 +02:00 committed by GitHub
parent 629bb74451
commit 8cf246e4d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 70 additions and 65 deletions

View file

@ -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,
};
};