2021-10-19 04:52:59 +08:00
|
|
|
import styled from 'styled-components';
|
|
|
|
import {
|
|
|
|
colorPrimary,
|
|
|
|
colorSuccess,
|
|
|
|
colorWarning,
|
|
|
|
colorDanger,
|
|
|
|
} from '/imports/ui/stylesheets/styled-components/palette';
|
|
|
|
|
|
|
|
const StatusIconWrapper = styled.div`
|
|
|
|
border-radius: 50%;
|
|
|
|
padding: 1.5rem;
|
|
|
|
|
2022-06-09 22:58:57 +08:00
|
|
|
${({ color }) => {
|
2021-10-19 04:52:59 +08:00
|
|
|
let bgColor = colorSuccess;
|
2022-06-09 22:58:57 +08:00
|
|
|
bgColor = color === 'warning' ? colorWarning : bgColor;
|
|
|
|
bgColor = color === 'danger' ? colorDanger : bgColor;
|
2021-10-19 04:52:59 +08:00
|
|
|
return `background-color: ${bgColor};`
|
|
|
|
}}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const IconWrapper = styled.div`
|
|
|
|
width: 2.25rem;
|
|
|
|
height: 2.25rem;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const Label = styled.div`
|
|
|
|
font-weight: 600;
|
|
|
|
margin: .25rem 0 .5rem;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const Settings = styled.span`
|
|
|
|
color: ${colorPrimary};
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export default {
|
|
|
|
StatusIconWrapper,
|
|
|
|
IconWrapper,
|
|
|
|
Label,
|
|
|
|
Settings,
|
|
|
|
};
|