PromucFlow_constructor/app/client/src/components/editorComponents/LetterIcon.tsx

21 lines
582 B
TypeScript
Raw Normal View History

2020-01-27 08:24:58 +00:00
import React from "react";
import styled from "styled-components";
const LetterIconWrapper = styled.div`
height: 28px;
width: 28px;
2020-12-24 04:32:25 +00:00
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]};
2020-01-27 08:24:58 +00:00
display: flex;
justify-content: center;
align-items: center;
`;
function LetterIcon(props: { text: string }) {
2020-01-27 08:24:58 +00:00
return <LetterIconWrapper>{props.text.toUpperCase()}</LetterIconWrapper>;
}
2020-01-27 08:24:58 +00:00
export default LetterIcon;