import React, { FC } from 'react'; import { color } from '../../styles/typography'; import { alignItems } from '../../styles/alignment'; import { display } from '../../styles/display'; import { IconProps } from './typings'; import styled, { css } from 'styled-components'; import { marginLeft, marginRight } from '../../styles/spacing'; const IconComponent: FC = ({ className, onClick }) => { return (
); }; export default styled(IconComponent)` ${({ width, height, color: cssColor = 'inherit', marginLeft: ml = '0', marginRight: mr = '0' }) => css` width: ${width}; height: ${height}; ${marginLeft(ml)} ${marginRight(mr)} ${display('flex')}; ${alignItems('center')}; ${color(cssColor)} .o-icon-search-svg { display: inline-block; stroke-width: 0; stroke: currentColor; fill: currentColor; } `} `;