the css function imported from '@emotion/react' works in the case,
const Button = styled('button')`
${css`background-color: blue`}
`
but doesn't work in the case,
const Button = styled('button')(props => `
${css`background-color: blue`}
`);
Check the codesandbox link for complete example.
What is the difference between the above two methods? Why does it work in the first case but doesn't work in the second case?