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