(path: string)
| 27 | } |
| 28 | |
| 29 | const formatName = (path: string) => { |
| 30 | const parts = path.split('/') |
| 31 | const componentName = parts[parts.length - 1] |
| 32 | return componentName.replace(/([a-z])([A-Z])/g, '$1 $2') |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * ComponentPreview renders a component preview with a preview and code tab. |
no outgoing calls
no test coverage detected