import { filter, get, map } from 'lodash' import Path from 'path' import { rgba } from 'polished' import React from 'react' import { useTranslation } from 'react-i18next' import { connect } from 'react-redux' import styled from 'styled-components' import { SlotitemIcon } from 'views/components/etc/icon' import { Tooltip } from 'views/components/etc/overlay' import { APISlotItem } from 'kcsapi/api_get_member/require_info/response' import { APIMstSlotitem } from 'kcsapi/api_start2/getData/response' import { equipDataSelectorFactory } from 'views/utils/selectors' const { ROOT } = window type Item = APIMstSlotitem & APISlotItem const AlvImage = styled.img` height: 14px; margin-bottom: 2px; margin-left: 1ex; ` const SlotItemContainer = styled.div` position: relative; height: 30px; img { height: 30px; } ` const ExtraIndicator = styled.div` position: absolute; right: 0; bottom: 0; line-height: 1em; width: 1em; height: 1em; text-align: center; border-radius: 100%; background: ${props => rgba(props.theme.GREEN1, 0.4)}; ` const Slotitem = ({ item, isEx = false }: { item: Item; isEx?: boolean }) => { const { t } = useTranslation(['resources']) return (