import React from 'react'; import { Dropdown } from 'react-bootstrap'; export interface Action { label: string; triggerAction: () => void; } export interface IInstanceActionsProps { actions: Action[]; title?: string; } export const InstanceActions = ({ actions, title }: IInstanceActionsProps) => (
{title || 'Instance Actions'} {(actions || []).map((action) => (
  • {action.label}
  • ))}
    );