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