(props: any)
| 7 | } |
| 8 | |
| 9 | export function parseProps(props: any) { |
| 10 | if (!props || (!props.sx && !props.css)) return props |
| 11 | |
| 12 | const next: Record<string, unknown> = {} |
| 13 | |
| 14 | for (let key in props) { |
| 15 | if (key === 'sx') continue |
| 16 | next[key] = props[key] |
| 17 | } |
| 18 | |
| 19 | next.css = getCSS(props) |
| 20 | return next |
| 21 | } |