(props: Props)
| 26 | export const shapeList = Object.keys(shapes) |
| 27 | |
| 28 | export default function Shape(props: Props){ |
| 29 | const { name, size = 24 } = props |
| 30 | |
| 31 | const Tag = (shapes as ShapeList)[name] |
| 32 | |
| 33 | if(!Tag) { |
| 34 | // shape doen't exists |
| 35 | return null |
| 36 | } |
| 37 | |
| 38 | return ( |
| 39 | <ShapeWrapper {...props} role="img"> |
| 40 | <Tag |
| 41 | width={size} |
| 42 | /> |
| 43 | </ShapeWrapper> |
| 44 | ) |
| 45 | } |
nothing calls this directly
no outgoing calls
no test coverage detected