pass background url as prop to styled component
问题 I have the following code: // @flow import React from 'react'; import { Route } from 'react-router-dom'; import Split from '../../components/grouping/Split'; import CenterBox from '../../components/grouping/CenterBox'; import styled from 'styled-components'; type Props = { routes: Array<Object>, background: String }; export default ({ routes, background }: Props) => (<div> <Split push="right" alignItems="center" height={50} pad={{ horizontal: 20 }}> <div /> <div>This feature will be available