// @flow
import React, { useCallback, useContext } from 'react';
import Button from './Button';
import ButtonIcon from './ButtonIcon';
import { TreeContext } from './TreeContext';
import { StoreContext } from './context';
import type { Element } from '../types';
import styles from './OwnersStack.css';
export default function OwnerStack() {
const { ownerStack, resetOwnerStack } = useContext(TreeContext);
// $FlowFixMe "Missing type annotation for U" whatever that means
const elements = ownerStack.map((id, index) => (