mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-11-16 01:21:16 +01:00
# Description of Changes Move frontend code into `core` folder and add infrastructure for `proprietary` folder to include premium, non-OSS features
12 lines
381 B
TypeScript
12 lines
381 B
TypeScript
import { useMediaQuery } from '@mantine/hooks';
|
|
import { usePreferences } from '@app/contexts/PreferencesContext';
|
|
|
|
export function useShouldShowWelcomeModal(): boolean {
|
|
const { preferences } = usePreferences();
|
|
const isMobile = useMediaQuery("(max-width: 1024px)");
|
|
|
|
return !preferences.hasCompletedOnboarding
|
|
&& preferences.toolPanelModePromptSeen
|
|
&& !isMobile;
|
|
}
|