PromucFlow_constructor/app/client/src/constants/IconConstants.tsx
2019-10-24 17:17:35 +05:30

22 lines
479 B
TypeScript

import styled from "styled-components";
import { Color } from "./Colors";
export type IconProps = {
width: number;
height: number;
color: Color;
};
export const IconWrapper = styled.div<IconProps>`
&:focus {
outline: none;
}
svg {
width: ${props => props.width || props.theme.fontSizes[7]}px;
height: ${props => props.height || props.theme.fontSizes[7]}px;
path {
fill: ${props => props.color || props.theme.colors.textOnDarkBG};
}
}
`;