How does one style conditionally with Styled Components?
I have a basic component that accepts a prop, but it doesn't seem to work (probably something really silly):
import React from 'react';
import styled from 'styled-components';
const Header = styled.h1`
color: ${props => (props.name === 'john' ? 'red' : 'blue')};
`;
export default ({ name }) => <Header>Hello {name}!</Header>;