MCPcopy
hub / github.com/elizabetdev/react-kawaii / IceCream

Function IceCream

src/iceCream/IceCream.jsx:7–37  ·  view source on GitHub ↗
({ size, color, mood })

Source from the content-addressed store, hash-verified

5import Wrapper from '../common/wrapper/Wrapper';
6
7const IceCream = ({ size, color, mood }) => (
8 <Wrapper
9 style={{ width: size * 0.5, height: size }}
10 width={size * 0.5}
11 height={size}
12 color={color}
13 >
14 <svg
15 width={size * 0.5}
16 height={size}
17 viewBox="0 0 110 220"
18 version="1.1"
19 xmlns="http://www.w3.org/2000/svg"
20 xmlnsXlink="http://www.w3.org/1999/xlink"
21 >
22 <g id="kawaii-iceCream">
23 <g fillRule="nonzero">
24 <path d={paths.stick} id="kawaii-iceCream__stick" fill="#FCCB7E" />
25 <path d={paths.shape} id="kawaii-iceCream__shape" fill={color} />
26 <path
27 d={paths.shadow}
28 id="kawaii-iceCream__shadow"
29 fill="#000000"
30 opacity=".1"
31 />
32 </g>
33 <Face mood={mood} transform="translate(22.000000, 81.000000)" />
34 </g>
35 </svg>
36 </Wrapper>
37);
38
39IceCream.propTypes = {
40 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected