summaryrefslogtreecommitdiffhomepage
path: root/gui/src/renderer/components/BetaLabel.tsx
blob: ca19a9ef4b7ca20bfcd8ce2802b2d63bd1d46cc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import styled from 'styled-components';

import { colors } from '../../config.json';
import { messages } from '../../shared/gettext';

const StyledBetaLabel = styled.span({
  display: 'inline-block',
  fontFamily: 'Open Sans',
  color: colors.blue,
  fontSize: '13px',
  fontWeight: 800,
  lineHeight: '20px',
  padding: '2px 0',
  background: colors.yellow,
  borderRadius: '5px',
  width: '50px',
  textAlign: 'center',
});

interface IBetaLabelProps {
  className?: string;
}

export default function BetaLabel(props: IBetaLabelProps) {
  return <StyledBetaLabel {...props}>{messages.gettext('BETA')}</StyledBetaLabel>;
}