mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 10:53:33 +00:00
10 lines
350 B
TypeScript
10 lines
350 B
TypeScript
|
|
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');
|
||
|
|
};
|