import { Size, Theme } from './types' import { backgroundColorMap, foregroundColorMap, dimensionsMap } from './utils' export default function LensIcon({ size = Size.small, theme = Theme.default, iconBackgroundColor, iconForegroundColor } : { size?: Size, theme?: Theme, iconBackgroundColor?: string, iconForegroundColor?: string }) { let { backgroundColor, foregroundColor } = getColors(theme) as any if (iconBackgroundColor) { backgroundColor = iconBackgroundColor } if (iconForegroundColor) { foregroundColor = iconForegroundColor } let { width, height } = dimensionsMap[size] return ( ) } function getColors(theme: Theme) { let foregroundColor = backgroundColorMap[theme] let backgroundColor = foregroundColorMap[theme] return { backgroundColor, foregroundColor } }