react-grid-system
Version:
A powerful Bootstrap-like responsive grid system for React.
14 lines (12 loc) • 360 B
JavaScript
export const visible = ({
screenClass, xs, sm, md, lg, xl, xxl, xxxl
}) => {
if (screenClass === 'xxl') return xxl;
if (screenClass === 'xxxl') return xxxl;
if (screenClass === 'xl') return xl;
if (screenClass === 'lg') return lg;
if (screenClass === 'md') return md;
if (screenClass === 'sm') return sm;
return xs;
};
export default visible;