Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

429 B
Raw Blame
import useScaledMaxWidth from '~/hooks/useScaledMaxWidth';
import { DRAWER_MAX_WIDTH } from '~/utils/breakpoints';

/**
 * Whether navigation is in drawer mode. Shared by the hook that owns the open state and
 * by every route control that reveals the reopen affordance, so they cannot disagree
 * about the current mode.
 */
export default function useDrawerViewport(): boolean {
  return useScaledMaxWidth(DRAWER_MAX_WIDTH);
}