// @flow

/* Wraps glamor's stylesheet and exports a singleton for the rest
*  of the app to use. */

import { StyleSheet } from '../vendor/glamor/sheet'

class StyleSheetExtended extends StyleSheet {
  reset() {
    return super.flush()
  }
  getCSS() {
    return super.rules().map(rule => rule.cssText).join('\n')
  }
}

export default new StyleSheetExtended({ speedy: false, maxLength: 40 })

// @flow

/* Wraps glamor's stylesheet and exports a singleton for the rest
*  of the app to use. */

import { StyleSheet } from '../vendor/glamor/sheet'

class StyleSheetExtended extends StyleSheet {
  reset() {
    return super.flush()
  }
  getCSS({ min = true }) {
    return super.rules().map(rule => rule.cssText).join(min ? '' : '\n')
  }
}

export default new StyleSheetExtended({ speedy: false, maxLength: 40 })

add smart default for getCSS