Local modifications to ClusterLabs/Anvil by Alteeve
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import { FunctionComponent } from 'react';
|
|
|
|
import styled from 'styled-components';
|
|
|
|
|
|
|
|
import DEFAULT_THEME from '../../lib/consts/DEFAULT_THEME';
|
|
|
|
|
|
|
|
const StyledLabel = styled.h2`
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
color: ${(props) => props.theme.colors.primary};
|
|
|
|
|
|
|
|
font-size: 1em;
|
|
|
|
font-weight: normal;
|
|
|
|
`;
|
|
|
|
|
|
|
|
StyledLabel.defaultProps = {
|
|
|
|
theme: DEFAULT_THEME,
|
|
|
|
};
|
|
|
|
|
|
|
|
const Label: FunctionComponent<LabelProps> = ({ text }) => {
|
|
|
|
return <StyledLabel>{text}</StyledLabel>;
|
|
|
|
};
|
|
|
|
|
|
|
|
export default Label;
|