| 1 |
import { type AnyColor, colord } from 'colord'; |
| 2 |
import type { Attributes } from '../../../types'; |
| 3 |
import { findBackgroundColor } from '../../../util/colors'; |
| 4 |
|
| 5 |
export const HeadlightsMuted = (attributes: Attributes) => { |
| 6 |
const { textColor } = attributes; |
| 7 |
return ( |
| 8 |
<span |
| 9 |
style={{ |
| 10 |
display: 'block', |
| 11 |
padding: '16px 0 0 16px', |
| 12 |
marginBottom: '-1px', |
| 13 |
width: '100%', |
| 14 |
textAlign: 'left', |
| 15 |
backgroundColor: findBackgroundColor(attributes), |
| 16 |
}} |
| 17 |
> |
| 18 |
<svg |
| 19 |
xmlns="http://www.w3.org/2000/svg" |
| 20 |
width={54} |
| 21 |
height={14} |
| 22 |
viewBox="0 0 54 14" |
| 23 |
> |
| 24 |
<g fill="none" fillRule="evenodd" transform="translate(1 1)"> |
| 25 |
<circle |
| 26 |
cx="6" |
| 27 |
cy="6" |
| 28 |
r="6" |
| 29 |
fill={colord(textColor as AnyColor) |
| 30 |
.alpha(0.2) |
| 31 |
.toHex()} |
| 32 |
stroke={colord(textColor as AnyColor) |
| 33 |
.alpha(0.3) |
| 34 |
.toHex()} |
| 35 |
strokeWidth=".5" |
| 36 |
></circle> |
| 37 |
<circle |
| 38 |
cx="26" |
| 39 |
cy="6" |
| 40 |
r="6" |
| 41 |
fill={colord(textColor as AnyColor) |
| 42 |
.alpha(0.2) |
| 43 |
.toHex()} |
| 44 |
stroke={colord(textColor as AnyColor) |
| 45 |
.alpha(0.3) |
| 46 |
.toHex()} |
| 47 |
strokeWidth=".5" |
| 48 |
></circle> |
| 49 |
<circle |
| 50 |
cx="46" |
| 51 |
cy="6" |
| 52 |
r="6" |
| 53 |
fill={colord(textColor as AnyColor) |
| 54 |
.alpha(0.2) |
| 55 |
.toHex()} |
| 56 |
stroke={colord(textColor as AnyColor) |
| 57 |
.alpha(0.3) |
| 58 |
.toHex()} |
| 59 |
strokeWidth=".5" |
| 60 |
></circle> |
| 61 |
</g> |
| 62 |
</svg> |
| 63 |
</span> |
| 64 |
); |
| 65 |
}; |
| 66 |
|