import jss from 'jss' ; import preset from 'jss-preset-default' ; jss . setup ( preset ( ) ) ; export const generateClassName = ( rule ) => rule . key ; export function stylesheet ( styles ) { const styleSheet = jss . createStyleSheet ( styles , { generateClassName } ) ; return { classNames : styleSheet . classes , css : styleSheet . toString ( ) , } ; }