Function getMediaContext

Calculates the media context based on provided breakpoints.

  • Parameters

    • breakpoints: Partial<IBreakpoints> = {}

      The breakpoints to use for the media context calculation.

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

    • The media context object.
    • isDesktop: boolean
    • isMobile: boolean
    • isPhone: boolean
    • isTablet: boolean
    • isWide: boolean