({sun}: {sun: string})
| 588 | }; |
| 589 | |
| 590 | function SunLabel({sun}: {sun: string}) { |
| 591 | return ( |
| 592 | <Label color={sunColors[sun]} icon={sunIcons[sun]}> |
| 593 | {sun} |
| 594 | </Label> |
| 595 | ); |
| 596 | } |
| 597 | |
| 598 | function getSunlight(item: Plant) { |
| 599 | return (item.sunlight.find(s => s.startsWith('part')) || item.sunlight[0]).split('/')[0]; |
nothing calls this directly
no outgoing calls
no test coverage detected