PromucFlow_constructor/app/client/src/components/editorComponents/LetterIcon.tsx
2020-01-27 08:24:58 +00:00

21 lines
578 B
TypeScript

import React from "react";
import styled from "styled-components";
const LetterIconWrapper = styled.div`
height: 28px;
width: 28px;
border-radius: ${props => props.theme.radii[1]}px;
background: ${props => props.theme.colors.navBG};
font-size: ${props => props.theme.fontSizes[5]}px;
font-weight: ${props => props.theme.fontWeights[3]};
display: flex;
justify-content: center;
align-items: center;
`;
const LetterIcon = (props: { text: string }) => {
return <LetterIconWrapper>{props.text.toUpperCase()}</LetterIconWrapper>;
};
export default LetterIcon;