UNPKG

@lobehub/chat

Version:

Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.

9 lines (6 loc) 208 B
import { useResponsive } from 'antd-style'; import { useMemo } from 'react'; export const useIsMobile = (): boolean => { const { mobile } = useResponsive(); return useMemo(() => !!mobile, [mobile]); };