(props)
| 161 | |
| 162 | // eslint-disable-next-line react/function-component-definition |
| 163 | const fn: StyleResult<PropKey, Theme> = (props) => { |
| 164 | if (props[prop] == null) { |
| 165 | return null; |
| 166 | } |
| 167 | |
| 168 | const propValue = props[prop]; |
| 169 | const theme = props.theme; |
| 170 | const themeMapping = getPath(theme, themeKey) || {}; |
| 171 | const styleFromPropValue = (valueFinal: any) => { |
| 172 | const value = getStyleValue2(themeMapping, transform, valueFinal, prop); |
| 173 | return cssProperty === false |
| 174 | ? value |
| 175 | : { |
| 176 | [cssProperty]: value, |
| 177 | }; |
| 178 | }; |
| 179 | |
| 180 | return handleBreakpoints(props, propValue, styleFromPropValue); |
| 181 | }; |
| 182 | |
| 183 | fn.propTypes = |
| 184 | process.env.NODE_ENV !== 'production' |
no test coverage detected