MCPcopy
hub / github.com/nusu/avvvatars / Shape

Function Shape

src/shape/Shape.tsx:28–45  ·  view source on GitHub ↗
(props: Props)

Source from the content-addressed store, hash-verified

26export const shapeList = Object.keys(shapes)
27
28export 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected