MCPcopy
hub / github.com/slopus/happy / useIsTablet

Function useIsTablet

packages/happy-app/sources/utils/responsive.ts:61–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59
60// Hook to detect if device is tablet
61export function useIsTablet(): boolean {
62 const deviceType = useDeviceType();
63 return deviceType === 'tablet';
64}
65
66// Hook to detect landscape orientation
67export function useIsLandscape(): boolean {

Callers 10

InboxView.tsxFile · 0.90
ChatHeaderViewFunction · 0.90
SessionsListFunction · 0.90
MainView.tsxFile · 0.90
Header.tsxFile · 0.90
DeviceInfoFunction · 0.90
InboxPageFunction · 0.90
SessionView.tsxFile · 0.90
SessionViewLoadedFunction · 0.90

Calls 1

useDeviceTypeFunction · 0.85

Tested by

no test coverage detected