This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
2019-01-13 03:41:45 +00:00
|
|
|
// @flow
|
2020-06-20 20:59:15 +00:00
|
|
|
import styled from "styled-components";
|
2019-01-13 03:41:45 +00:00
|
|
|
|
|
|
|
const Badge = styled.span`
|
|
|
|
margin-left: 10px;
|
|
|
|
padding: 2px 6px 3px;
|
|
|
|
background-color: ${({ admin, theme }) =>
|
2019-10-06 01:42:03 +00:00
|
|
|
admin ? theme.primary : theme.textTertiary};
|
|
|
|
color: ${({ admin, theme }) => (admin ? theme.white : theme.background)};
|
|
|
|
border-radius: 4px;
|
2019-01-13 03:41:45 +00:00
|
|
|
font-size: 11px;
|
|
|
|
font-weight: 500;
|
|
|
|
text-transform: uppercase;
|
|
|
|
user-select: none;
|
|
|
|
`;
|
|
|
|
|
|
|
|
export default Badge;
|