mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 02:43:33 +00:00
Add files
This commit is contained in:
commit
e87c814068
266 changed files with 63938 additions and 0 deletions
9
src/renderer/hooks/use-should-pad-titlebar.tsx
Normal file
9
src/renderer/hooks/use-should-pad-titlebar.tsx
Normal file
|
|
@ -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');
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue