| 1 |
import { colord, AnyColor } from 'colord'; |
| 2 |
import { Attributes } from '../../../types'; |
| 3 |
|
| 4 |
export const HeadlightsMutedAlt = ({ bgColor }: Partial<Attributes>) => { |
| 5 |
const bgC = colord(bgColor as AnyColor); |
| 6 |
const bg = bgC.isDark() ? bgC.lighten(0.05) : bgC.darken(0.05); |
| 7 |
return ( |
| 8 |
<span |
| 9 |
style={{ |
| 10 |
display: 'flex', |
| 11 |
alignItems: 'center', |
| 12 |
padding: '10px 0px 10px 16px', |
| 13 |
marginBottom: '-2px', |
| 14 |
width: '100%', |
| 15 |
textAlign: 'left', |
| 16 |
backgroundColor: bg.toHex(), |
| 17 |
}}> |
| 18 |
<svg |
| 19 |
xmlns="http://www.w3.org/2000/svg" |
| 20 |
width={62} |
| 21 |
height={20} |
| 22 |
viewBox="0 0 62 20"> |
| 23 |
<g fill="none" fillRule="evenodd" transform="translate(1 1)"> |
| 24 |
<circle |
| 25 |
cx="8" |
| 26 |
cy="8" |
| 27 |
r="8" |
| 28 |
fill={bgColor} |
| 29 |
stroke={bgColor} |
| 30 |
strokeWidth=".5"></circle> |
| 31 |
<circle |
| 32 |
cx="30" |
| 33 |
cy="8" |
| 34 |
r="8" |
| 35 |
fill={bgColor} |
| 36 |
stroke={bgColor} |
| 37 |
strokeWidth=".5"></circle> |
| 38 |
<circle |
| 39 |
cx="52" |
| 40 |
cy="8" |
| 41 |
r="8" |
| 42 |
fill={bgColor} |
| 43 |
stroke={bgColor} |
| 44 |
strokeWidth=".5"></circle> |
| 45 |
</g> |
| 46 |
</svg> |
| 47 |
</span> |
| 48 |
); |
| 49 |
}; |
| 50 |
|