UNPKG

strapi-plugin-content-manager

Version:

A powerful UI to easily manage your data.

33 lines (30 loc) 662 B
import styled from 'styled-components'; import getColor from './utils/getColor'; /* eslint-disable indent */ const RemoveWrapper = styled.div` display: flex; flex-direction: column; justify-content: center; position: absolute; top: 0px; bottom: 0px; right: 0; width: 30px; text-align: center; background-color: ${({ isOverEditBlock, isOverRemove, isSelected }) => { return getColor(isOverRemove, isSelected, isOverEditBlock); }}; cursor: pointer; svg { align-self: center; color: #b4b6ba; } ${({ isOverRemove }) => isOverRemove && ` path { fill: #f64d0a; } `}; `; export default RemoveWrapper;