import React from 'react';
import styled, { css } from 'styled-components';
const size: MediaQueryProps = {
small: 400,
med: 960,
large: 1140,
};
const above = Object.keys(size).reduce((acc, cur) => {
acc[cur] = (...args:any) => css`
@media (min-width: ${size[cur]}px) {
${css(...args)}
}
`;
return acc;
}, {} as any);