decentraland-ui
Version:
Decentraland's UI components and styles
61 lines (60 loc) • 2.18 kB
TypeScript
/**
* Media hook to determine if we're going to be rendering in a desktop environment with big screens.
*/
declare const useBigDesktopMediaQuery: () => boolean;
/**
* Media hook to determine if we're going to be rendering in a desktop environment.
*/
declare const useDesktopMediaQuery: () => boolean;
/**
* Media hook to determine if we're going to be rendering in a tablet environment.
*/
declare const useTabletMediaQuery: () => boolean;
/**
* Media hook to determine if we're going to be rendering in a tablet or below environment.
*/
declare const useTabletAndBelowMediaQuery: () => boolean;
/**
* Media hook to determine if we're going to be rendering in a mobile environment.
*/
declare const useMobileMediaQuery: () => boolean;
/**
* Media hook to determine if we're going to be rendering in an environment that's not mobile.
*/
declare const useNotMobileMediaQuery: () => boolean;
/**
* @deprecated Should start using the same component migrated to UI2.
* Renders a component if the screen suits the desktop size.
*/
declare const Desktop: ({ children }: {
children: any;
}) => any;
/**
* @deprecated Should start using the same component migrated to UI2.
* Renders a component if the screen suits the tablet size.
*/
declare const Tablet: ({ children }: {
children: any;
}) => any;
/**
* @deprecated Should start using the same component migrated to UI2.
* Renders a component if the screen suits the tablet or mobile size.
*/
declare const TabletAndBelow: ({ children }: {
children: any;
}) => any;
/**
* @deprecated Should start using the same component migrated to UI2.
* Renders a component if the screen suits the mobile size.
*/
declare const Mobile: ({ children }: {
children: any;
}) => any;
/**
* @deprecated Should start using the same component migrated to UI2.
* Renders a component if the screen doesn't have the size of a mobile device.
*/
declare const NotMobile: ({ children }: {
children: any;
}) => any;
export { Desktop, Tablet, TabletAndBelow, Mobile, NotMobile, useBigDesktopMediaQuery, useDesktopMediaQuery, useTabletMediaQuery, useTabletAndBelowMediaQuery, useMobileMediaQuery, useNotMobileMediaQuery };