/**
 * Combines multiple media queries into one
 * The parts of the created media query are separated by the 'and' logical operator
 * @param {...string} mediaQueries
 * @returns {string}
 */
export const combineMediaQueriesWithAnd = (...mediaQueries) =>
    `@media ${mediaQueries.map(str => str.replace('@media ', '')).join(' and ')}`;
