'use strict';

var neptuneTokens = require('@transferwise/neptune-tokens');
var useScreenSize = require('../useScreenSize.js');

/**
 * @deprecated Prefer `useScreenSize` instead.
 */
const useLayout = () => {
  const screenXs = useScreenSize.useScreenSize(neptuneTokens.Breakpoint.EXTRA_SMALL);
  const screenSm = useScreenSize.useScreenSize(neptuneTokens.Breakpoint.SMALL);
  const screenMd = useScreenSize.useScreenSize(neptuneTokens.Breakpoint.MEDIUM);
  const screenLg = useScreenSize.useScreenSize(neptuneTokens.Breakpoint.LARGE);
  const screenXl = useScreenSize.useScreenSize(neptuneTokens.Breakpoint.EXTRA_LARGE);
  return {
    isMobile: screenSm != null ? !screenSm : undefined,
    isExtraSmall: screenXs,
    isSmall: screenSm,
    isMedium: screenMd,
    isLarge: screenLg,
    isExtraLarge: screenXl
  };
};

exports.useLayout = useLayout;
//# sourceMappingURL=useLayout.js.map
