Calculates the media context based on provided breakpoints.

  • Parameters

    • Optionalbreakpoints: Partial<IBreakpoints>

      The breakpoints to use for the media context calculation.

      • xs

        The extra small breakpoint.

      • sm

        The small breakpoint.

      • lg

        The large breakpoint.

    Returns {
        isDesktop: boolean;
        isMobile: boolean;
        isPhone: boolean;
        isTablet: boolean;
        isWide: boolean;
    }

    • The media context object.