import React from 'react'; // The green line icons of the actions menus, keyed by the action's `key`. The // same drawings as MENU_ICONS in app/helpers/icons_helper.rb, which the // server-rendered menus use; keep the two in step. const PATHS = { view: <>, edit: <>, photo: <>, harvest: <>, seeds: , finish: <>, transplant: <>, plan: <>, deactivate: <>, activate: <>, delete: <>, }; export default function MenuIcon({name}) { const paths = PATHS[name]; if (!paths) return null; return ( ); }