'use strict';

var breakpoint = require('../../propsValues/breakpoint.js');
var useScreenSize = require('../useScreenSize.js');

/**
 * @deprecated Prefer `useScreenSize` instead.
 */
const useLayout = () => {
  const screenXs = useScreenSize.useScreenSize(breakpoint.Breakpoint.EXTRA_SMALL);
  const screenSm = useScreenSize.useScreenSize(breakpoint.Breakpoint.SMALL);
  const screenMd = useScreenSize.useScreenSize(breakpoint.Breakpoint.MEDIUM);
  const screenLg = useScreenSize.useScreenSize(breakpoint.Breakpoint.LARGE);
  const screenXl = useScreenSize.useScreenSize(breakpoint.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
