(props: Record<string, unknown>)
| 173 | }; |
| 174 | |
| 175 | const stringifyAttributes = (props: Record<string, unknown>): string => { |
| 176 | return Object.entries(props) |
| 177 | .map(([key, value]) => { |
| 178 | if (typeof value === 'string') { |
| 179 | return `${key}="${value}"`; |
| 180 | } |
| 181 | |
| 182 | return `${key}={${stringifyValue(value)}}`; |
| 183 | }) |
| 184 | .join(' '); |
| 185 | }; |
| 186 | |
| 187 | const stringifyValue = (value: unknown): string => { |
| 188 | if (isNode(value)) { |
no test coverage detected