mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 16:45:43 -06:00
PublicDashboard: Add RTK Query with loading and error state. Add MSW dependency for testing.
8 lines
144 B
TypeScript
8 lines
144 B
TypeScript
import { useWindowSize } from 'react-use';
|
|
|
|
export const useIsDesktop = () => {
|
|
const { width } = useWindowSize();
|
|
|
|
return width > 1024;
|
|
};
|