PromucFlow_constructor/app/client/src/components/editorComponents/LetterIcon.tsx
Satish Gandham 7f7f6f666b
Development: Add eslint rules for code consistency (#4083)
Co-authored-by: Satish Gandham <satish@appsmith.com>
Co-authored-by: Abhinav Jha <abhinav@appsmith.com>
2021-04-28 15:58:39 +05:30

21 lines
582 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;
`;
function LetterIcon(props: { text: string }) {
return <LetterIconWrapper>{props.text.toUpperCase()}</LetterIconWrapper>;
}
export default LetterIcon;