mirror of
https://github.com/jeffvli/feishin.git
synced 2026-07-22 10:26:33 +02:00
Add files
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { useSidebarRightExpanded } from '/@/renderer/store';
|
||||
import { useGeneralSettings } from '/@/renderer/store/settings.store';
|
||||
|
||||
export const useShouldPadTitlebar = () => {
|
||||
const isSidebarExpanded = useSidebarRightExpanded();
|
||||
const { sideQueueType } = useGeneralSettings();
|
||||
|
||||
return !(isSidebarExpanded && sideQueueType === 'sideQueue');
|
||||
};
|
||||
Reference in New Issue
Block a user