/* eslint-disable space-infix-ops */ /** * Create a helper function for accessing a component's class name. * * @param {Object} styles Dictionary of style -> postcss generated class name. * @param {String} prefix Component name prefix dasherized * @returns {Function} * @throws {TypeError} If the style is not found. * * @example * ```jsx * import styles from './progress-bar.module.less; * import createStyler from './styler'; * const style = createStyler('progress-bar'); * * const render = (props) => { * return ( *