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