在定義Container 的Styled Component 地方,可以透過 props 將傳入的值取出,這裡直接使用解構賦值取出 theme 的內容,因此不用寫成 ${(props) => props.theme.
確定! 回上一頁