import React from 'react'; import {formatDate} from '../dates'; import ActionsMenu from './ActionsMenu'; import CropChip from './CropChip'; // One annual planting as a row of three aligned columns: the crop (and when it // was planted), how it is getting on (badges, then a progress bar or a note // when there is nothing to predict from), and its own actions menu. export default function PlantingRow({planting, defaultIconUrl, highlighted}) { const {id, url, crop, badges, planted_at: plantedAt} = planting; return (