mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-13 18:59:22 -05:00
27eeb3acd2
Load i18n files and add dayjs.
7 lines
269 B
TypeScript
7 lines
269 B
TypeScript
import { isDesktop, isMobile, isTablet } from "react-device-detect";
|
|
export const isTouchscreenDevice =
|
|
isDesktop && !isTablet
|
|
? false
|
|
: (typeof window !== "undefined"
|
|
? navigator.maxTouchPoints > 0
|
|
: false) || isMobile;
|