import {styled} from '@mui/material/styles'; import {IWavyIconSymbol, IWavyIconWave} from './wavy-icon.type'; import {themeDetector} from '../../../../helpers/theme-detector/theme-detector'; import {rgba} from 'polished'; import Alert from 'herein-icon/alert-circle'; import Check from 'herein-icon/check-circle'; import Info from 'herein-icon/info-circle'; const Container = styled('div')` width: 38px; height: 38px; `; const Wave = styled('div')` width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; padding: ${({padding}) => (padding ? `${padding}px` : '3px')}; border-radius: 100rem; border: 2px solid ${({color, opacity, theme}) => rgba( theme.palette[themeDetector(false, color)][600] as string, opacity, )}; `; const DangerIcon = styled(Alert)` font-size: 10rem; color: ${({theme, color}) => theme.palette[themeDetector(false, color)][600]}; `; const SuccessIcon = styled(Check)` font-size: 10rem; color: ${({theme, color}) => theme.palette[themeDetector(false, color)][600]}; `; const InfoIcon = styled(Info)` font-size: 10rem; color: ${({theme, color}) => theme.palette[themeDetector(false, color)][600]}; `; export const WavyIconStyle = { Container, Wave, DangerIcon, SuccessIcon, InfoIcon, };