blob: bbb6b7935ef1f4b2fe1508fb1b94fbea03e45433 (
plain) (
blame)
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
27
28
29
|
import * as React from 'react';
import styled from 'styled-components';
import { colors } from 'ts/style/colors';
export interface ButtonInterface {
text: string;
}
const StyledButton = styled.button`
appearance: none;
border: 0;
background-color: ${colors.brandLight};
color: ${colors.white};
text-align: center;
padding: 13px 22px 14px;
`;
const Text = styled.span`
font-size: 1rem;
font-weight: 500;
line-height: 1.375rem;
`;
export const Button: React.StatelessComponent<ButtonInterface> = ({ text }) => (
<StyledButton>
<Text>{text}</Text>
</StyledButton>
);
|