| 1 |
import { type AnyColor, colord } from 'colord'; |
| 2 |
import type { Attributes } from '../../../types'; |
| 3 |
|
| 4 |
export const HeadlightsMutedAlt = ({ bgColor }: 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 |
> |
| 19 |
<svg |
| 20 |
xmlns="http://www.w3.org/2000/svg" |
| 21 |
width={62} |
| 22 |
height={20} |
| 23 |
viewBox="0 0 62 20" |
| 24 |
> |
| 25 |
<g fill="none" fillRule="evenodd" transform="translate(1 1)"> |
| 26 |
<circle |
| 27 |
cx="8" |
| 28 |
cy="8" |
| 29 |
r="8" |
| 30 |
fill={bgColor} |
| 31 |
stroke={bgColor} |
| 32 |
strokeWidth=".5" |
| 33 |
></circle> |
| 34 |
<circle |
| 35 |
cx="30" |
| 36 |
cy="8" |
| 37 |
r="8" |
| 38 |
fill={bgColor} |
| 39 |
stroke={bgColor} |
| 40 |
strokeWidth=".5" |
| 41 |
></circle> |
| 42 |
<circle |
| 43 |
cx="52" |
| 44 |
cy="8" |
| 45 |
r="8" |
| 46 |
fill={bgColor} |
| 47 |
stroke={bgColor} |
| 48 |
strokeWidth=".5" |
| 49 |
></circle> |
| 50 |
</g> |
| 51 |
</svg> |
| 52 |
</span> |
| 53 |
); |
| 54 |
}; |
| 55 |
|