import React, { Fragment } from 'react'; import { Link } from 'react-router-dom'; import styled from 'styled-components'; import remcalc from 'remcalc'; import { Field } from 'redux-form'; import Flex from 'styled-flex-component'; import { Padding, Margin } from 'styled-components-spacing'; import { Card, Anchor, CardHeader, Divider, ActionsIcon, PopoverTarget, Popover, PopoverItem, PopoverDivider, PopoverContainer, Radio, FormLabel, FormGroup, StatusLoader } from 'joyent-ui-toolkit'; import { ImageType, OS } from '@root/constants'; const A = styled(Anchor)` color: ${props => props.theme.text}; text-decoration: none; font-weight: ${props => props.theme.font.weight.semibold}; `; const CardAnchor = styled(Anchor)` color: ${props => props.theme.text}; text-decoration: none; `; const ItemAnchor = styled(Anchor)` color: ${props => props.theme.text}; -webkit-text-fill-color: currentcolor; text-decoration: none; `; const Type = styled(Margin)` overflow: hidden; white-space: nowrap; text-overflow: ellipsis; `; const Content = styled(Padding)` max-width: calc(100% - 48px); overflow: hidden; `; const Max = styled(Flex)` max-width: 100%; height: 100%; `; const DividerContainer = styled(Margin)` height: 100%; `; const Actions = styled(Flex)` width: 48px; height: 48px; min-width: 48px; `; export const Image = ({ name, os, version, type, removing, onRemove, onCreateInstance }) => ( {removing ? ( ) : ( {React.createElement(OS[os], { width: '24', height: '24' })} {name} {version} {ImageType[type]} Create Instance Remove )} ); export const Filters = ({ selected }) => ( All Virtual machines Infrastructure container );