MCPcopy Create free account
hub / github.com/adobe/react-spectrum / getSunlight

Function getSunlight

packages/dev/docs/pages/react-aria/home/ExampleApp.tsx:598–600  ·  view source on GitHub ↗
(item: Plant)

Source from the content-addressed store, hash-verified

596}
597
598function getSunlight(item: Plant) {
599 return (item.sunlight.find(s => s.startsWith('part')) || item.sunlight[0]).split('/')[0];
600}
601
602const wateringIcons: Record<string, ReactElement> = {
603 Frequent: <Droplets aria-hidden="true" className="w-4 h-4 shrink-0" />,

Callers 2

ExampleAppFunction · 0.70
PlantDialogFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected