UNPKG

styled-components

Version:

**This is a work in progress** based off of [this demo](https://github.com/geelen/css-components-demo).

9 lines (7 loc) 249 B
// @flow import type { Interpolation } from '../types' export default (strings: Array<string>, interpolations: Array<Interpolation>) => ( interpolations.reduce((array, interp, i) => ( array.concat(interp, strings[i + 1]) ), [strings[0]]) )