summaryrefslogtreecommitdiffhomepage
path: root/gui/src/renderer/components/BetaLabel.tsx
blob: eded2eea55af198fb4b136667e89b3df7647a8ef (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 React from 'react';
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>;
}