import React from 'react'; import distanceInWordsToNow from 'date-fns/distance_in_words_to_now'; import Value from 'react-redux-values'; import remcalc from 'remcalc'; import titleCase from 'title-case'; import { Row, Col, Anchor, FormGroup, Input, FormLabel, Checkbox, Button, Table, TableThead, TableTr, TableTh, TableTd, TableTbody, Footer, StatusLoader, Message, MessageTitle, MessageDescription, Popover, PopoverContainer, PopoverTarget, PopoverItem, PopoverDivider, QueryBreakpoints, DotIcon, StartIcon, StopIcon, ResetIcon, DeleteIcon, ActionsIcon } from 'joyent-ui-toolkit'; const { SmallOnly, Medium } = QueryBreakpoints; const stateColor = { PROVISIONING: 'primary', RUNNING: 'green', STOPPING: 'grey', STOPPED: 'grey', DELETED: 'secondaryActive', FAILED: 'red' }; export const MenuForm = ({ handleSubmit, searchable }) => (
); export const Actions = ({ submitting = false, allowedActions = {}, onStart = () => null, onStop = () => null, onReboot = () => null, onDelete = () => null }) => ( ); export const Item = ({ id = '', name, state, created, allowedActions = {}, submitting, onStart, onStop, onReboot, onDelete }) => ({id.substring(0, 7)}